Closed Siggs2000 closed 7 years ago
This MLS also requires a User Agent and User Agent Password, btw... Is this the proper syntax for that?
@client = Rets::Client.new({
metadata_serializer: Rets::Metadata::JsonSerializer.new,
login_url: @login_url,
username: @username,
password: @password,
agent:@user_agent,
ua_password:@ua_password})
That all looks correct to me, I'm not sure why the MLS is returning a 407, sorry! You can pass in a logger when initializing the client, I'd start by passing in a logger and seeing the full response from the MLS, something like logger: Logger.new(STDOUT)
I'm going to close this, as it sounds like it's probably an issue with the rets server, not with the rets gem specifically. Feel free to post back to this issue if you have more questions or want help looking at the log output.
It might actually be the proxy that I'm using. I've tried this on other MLS system and I get the same error. I'll check with Proximo.
I also figured out the useragent password syntax too. I'll add an example PR for that too. Thanks again.
Doing a bunch of different rets mappings this week....
I ran into one that requires a proxy and I'm getting an HTTP error when logging in. My code:
The proxy service doesn't require a password (or it's actually included in the url itself or something)
It returns this error: