Can only login with Rets Connector
This is the login url: https://cren-rets.paragonrels.com/ret... User name: dotsig
I am able to successfully login and pull data with RETS Connector, but phRETS and retsIQ both do not allow me to login
This is what I get from phRETS:
Array ( [type] => http [code] => 0 [text] => ) GetMetadataTypes() called but unable to find GetMetadata location. Failed login?
retsIQ throws errors about index -1 out of bounds (this is while doing a search after trying to connect).
The phRETS version just times out after trying to connect for a couple minutes.
Any one have any ideas on how to get around this?
Thanks in advance, Jared
Are you using the same HTTPS URL for all three environments?
Yes, I am.
With phRETS are you using basic authentication using HTTPS?
phRETS handles the basic vs digest auth for me. I am going to post a separate comment with the code for how I connect since characters are limited here.
$rets = new phRETS();
$rets->SetParam('catch_last_response', true); $rets->SetParam('compression_enabled', true); $rets->AddHeader("RETS-Version", "RETS/1.7.2"); $rets->AddHeader('Accept', '/'); $rets->AddHeader("User-Agent", $user_agent);
$connect = $rets->Connect($url, $user, $pass)
I saw 4 successful logins come through with User Agent: "V1rtualAg3nt/1.7.2" without corresponding logouts. Is that the user agent you are using for phRETS?
That is the user agent I am using in retsIQ, the java version of it. I have been using "RETS-Connector/1.2" the last couple days in phRETS (to see if something was going on with the user agent since I could only login with RETS Connector). Before that I was using "V1rtualAg3nt/172" in phRETS
My preference is to use retsIQ, but it always throws this error: null String index out of range: -1
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
That was for a call to getMetadata after connecting, it does the same thing for a call to Search
What URL are you using to connect to retsIQ?
I am using this url for retsIQ, phRETS, and RETS Connector: https://cren-rets.paragonrels.com/ret...
Does retsIQ support HTTPS?
Yes it does, but maybe not with paragonrels for some reason? I integrated with this MLS this morning: http://tsierra.rets.paragonrels.com/r...
It works great on http, but gives the same error on https. I tried http on cren-rets last week, and it
didn't work. But today it is. I greatly appreciate the time you've spent helping me. I'm curious why it won't work over https since I have other MLSs that work in retsIQ with https. I'm more confused about why phRETS won't work over https either.
The main difference between HTTP and HTTPS connection with our servers is that HTTPS uses Basic authentication and HTTP requires Digest. But don't know if retsIQ has a setting for that or not?
I don't see an option for that in retsIQ, but with phRETS I had tried the force_basic_authentication option this morning, and that oddly didn't resolve the problem. I have things running now on http. Thanks again.