Ask Your Question

Getting Unauthorized error randomly

asked 2018-05-02 08:59:45 -0600

updated 2018-05-02 09:06:04 -0600

When we call below url to get data, sometimes data comes correctly, but most of the time we get Unauthorized error.

We have double checked the credentials and its correct. Is there anything in the url below that needs to be corrected?

edit: do we need to whitelist our development server with IRMLS? We've setup a feed successfully for MIBOR, but are running into some errors with IRMLS. If this is an issue on our end, any guidance would be much appreciated! Thank you for the support!

edit retag flag offensive close merge delete


Are you still having issues with this after about 6 AM CST this morning?

bwolven gravatar imagebwolven ( 2018-05-02 11:12:37 -0600 )edit

Yes, we are getting below error:

401 - Unauthorized: Access is denied due to invalid credentials. You do not have permission to view this directory or page using the credentials that you supplied.

daniel.williams gravatar imagedaniel.williams ( 2018-05-03 00:30:50 -0600 )edit

What account name are you using on IRMLS (NO PASSWORDS PLEASE)?

bwolven gravatar imagebwolven ( 2018-05-03 10:42:51 -0600 )edit

We are using LaFTCKVOW. We are able to connect using a different server, but not on our development server.

daniel.williams gravatar imagedaniel.williams ( 2018-05-03 11:32:17 -0600 )edit

IRMLS has a scheduled weekly refresh that ran from 8:30 pm to 9:30 pm CST last night. You would have been locked out during that period of time. And when I look in our RETS logs I see that's when your logins were failing. One other thing, I don't see in our logs where you are sending any LOGOUT transactions.

bwolven gravatar imagebwolven ( 2018-05-03 12:05:06 -0600 )edit

Also what is the external IP address for your development server so I can see if it is blocked. Our logs shows requests for this IP:

bwolven gravatar imagebwolven ( 2018-05-03 13:43:43 -0600 )edit

Hello, I'm checking with my developers.

daniel.williams gravatar imagedaniel.williams ( 2018-05-04 10:56:53 -0600 )edit

While I'm thinking about it, does this forum have the documentation for IRMLS rets? If we aren't doing logout transactions, I would like our dev team to ensure we are following correct procedures.

daniel.williams gravatar imagedaniel.williams ( 2018-05-04 10:58:18 -0600 )edit

Current CST time is 12:12 AM and still we are getting same error. Our IP address is from where we are requesting above url.

daniel.williams gravatar imagedaniel.williams ( 2018-05-05 00:14:03 -0600 )edit

Do you need any additional information from our end to sort this out?

daniel.williams gravatar imagedaniel.williams ( 2018-05-08 01:18:35 -0600 )edit

We put in a request to see if IP: is being blocked. Will let you know when we hear back.

bwolven gravatar imagebwolven ( 2018-05-08 10:15:09 -0600 )edit

Thank you! We're eager to move forward!

daniel.williams gravatar imagedaniel.williams ( 2018-05-08 10:16:07 -0600 )edit

According to our network personnel, that IP isn't being blocked. Are you sure that is the external IP address? Have you verified the RETS URL and account information you are using is correct? Have you tried doing a login request in a browser like chrome on the development box?

bwolven gravatar imagebwolven ( 2018-05-08 13:30:37 -0600 )edit

External IP address is correct. RETS URL I already mentioned in the question and account information is correct because it returns data sometime. We already tried in chrome browser.

If you can share email address I can send you screenshot for this as well.

daniel.williams gravatar imagedaniel.williams ( 2018-05-09 00:48:21 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-05-09 14:32:39 -0600

I wonder if your application isn't handling the Digest CNONCE expiration properly? Some of the older CURL libraries didn't handle this properly for example. If so, that could cause the issue.

Try connecting using HTTPS with Basic authentication and see if the issue persists.

(NOTE: the dash in the URL after MLSID)


edit flag offensive delete link more


When we use this url it works fine as you can see in the screenshot

But when we use above url that you mentioned with https it still gives error with same credentials as first url . Please see the screenshot - Error

Can you check the access logs from your end.

daniel.williams gravatar imagedaniel.williams ( 2018-05-10 01:30:35 -0600 )edit

Sorry. You have to do a login first before doing a search request with HTTPS. "" I meant to say try using the HTTPS version of the URL to do your RETS access and see if you still have issues.

bwolven gravatar imagebwolven ( 2018-05-10 05:10:25 -0600 )edit

Were you able to get it working with HTTPS?

bwolven gravatar imagebwolven ( 2018-05-10 15:59:29 -0600 )edit

Yes, its working fine with HTTPS. Thanks a lot.

daniel.williams gravatar imagedaniel.williams ( 2018-05-11 08:18:32 -0600 )edit

If it works with HTTPS, it is probably an issue with the Digest NONCE expiration handling I mentioned above. Good to hear it is working.

bwolven gravatar imagebwolven ( 2018-05-11 09:12:50 -0600 )edit

Thank you again! I sincerely appreciate your help!

daniel.williams gravatar imagedaniel.williams ( 2018-05-11 09:15:31 -0600 )edit
Login/Signup to Answer

Question Tools


Asked: 2018-05-02 08:59:45 -0600

Seen: 616 times

Last updated: May 11 '18