I've been using this code for several years on 2 successful apps, and now launching a new app. This code works in my development environment for the new app, but not on the staging app hosted on heroku. On heroku I get the following error on login:
Cookie#domain returns dot-less domain name now. Use Cookie#dot_domain if you need "." at the beginning.
Error: Got error code 20513 (Unexpected error, please try again)
Login code:
client = Rets::Client.new({
login_url: LOGIN_URL,
username: LOGIN,
password: PASSWORD,
version: VERSION
})
begin
client.login
rescue => e
puts 'Error: ' + e.message
exit!
end
I've been using this code for several years on 2 successful apps, and now launching a new app. This code works in my development environment for the new app, but not on the staging app hosted on heroku. On heroku I get the following error on login:
Login code: