-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Authorization Errors #23
Comments
If I'm not mistaken, some Rapattoni systems also require that a specific user agent and/or a user agent password be set. If so, not supplying those would raise an unauthorized login error. If you need to set a user agent, it can be done using RETS4R::Client#user_agent= and if you do need to set a user agent password, check out the documentation for RETS4R::Client#set_pre_request_block. If your MLS doesn't require those, nor limits to specific IP addresses, you might want to check out the master branch as there has work on the auth code recently that might address your problem. I know that I've accessed a Rapattoni system several years ago, but there's a lot that could have changed since then. |
Thanks - the missing user_agent was the problem. Rapattoni doesn't require a user_agent_password, however, I'm now getting an error at set_pre_request_block. Here's the full backtrace - any ideas? ruby-1.9.2-p290 :005 > retsclient = RETS4R::Client.new(rets_url) |
Glad that solved the initial issue. My first thought is that it might be a problem with running under ruby 1.9, as I don't believe the fixes for 1.9 are in the 1.1.18 gem. Could you give it a try either under ruby 1.8 or from a clone of master? |
Even after I switch to 1.8.7-p352, I still get: RETS4R::Client::HTTPError: 400 Bad Request.: The request could not be understood by the server due to malformed syntax. Any further ideas? |
Not sure what would be causing that. Can you set logger with its level set to debug? It'd be helpful to see what exactly it's sending to the server. |
I'm trying to log in with a username, password and URL that have been verified by Rapattoni, but I continue to get:
Any suggestions?
The text was updated successfully, but these errors were encountered: