401 Nonce Expired
1: url: http://hudson.rets.paragonrels.com/re... 2: username: NAM HOANG (I am a realtor, not a vendor, but I have access to RETS)
This is the output from my debug log:
rets-client:request request: { debugId: 1, uri: 'http://hudson.rets.paragonrels.com/rets/fnisrets.aspx/HUDSON/login?rets-version=rets%2F1.5', method: 'GET', headers: { 'User-Agent': 'RETS node-client/4.x', 'RETS-Version': 'RETS/1.5', host: 'hudson.rets.paragonrels.com' } } +0ms
rets-client:request auth: { debugId: 1, statusCode: 401, headers: { 'cache-control': 'private', 'content-type': 'text/html', expires: 'Mon, 01 Jan 0001 00:00:00 GMT', 'rets-server': 'RETS-Paragon/1.0', 'rets-version': 'RETS/1.5', 'www-authenticate': 'Digest qop="auth",realm="HUDSON",nonce="2019-05-16T03:21:53",opaque="",stale="false",domain="\rets\fnisrets.aspx\HUDSON"', 'x-server': 'A11', date: 'Thu, 16 May 2019 03:11:52 GMT', connection: 'close', 'content-length': '1293', vary: 'Accept-Encoding' }, uri: 'http://hudson.rets.paragonrels.com/rets/fnisrets.aspx/HUDSON/login?rets-version=rets%2F1.5' } +367ms
rets-client:request request: { debugId: 1, uri: 'http://hudson.rets.paragonrels.com/rets/fnisrets.aspx/HUDSON/login?rets-version=rets%2F1.5', method: 'GET', headers: { 'User-Agent': 'RETS node-client/4.x', 'RETS-Version': 'RETS/1.5', authorization: 'Digest username="NAM HOANG", realm="HUDSON", nonce="2019-05-16T03:21:53", uri="/rets/fnisrets.aspx/HUDSON/login?rets-version=rets%2F1.5", qop=auth, response="5fde621f01bd55b0f260ff0455f3ea22", nc=00000001, cnonce="5c5be3e2b46d463bb0c0b5661a084170"', referer: 'http://hudson.rets.paragonrels.com/rets/fnisrets.aspx/HUDSON/login?rets-version=rets%2F1.5', host: 'hudson.rets.paragonrels.com' } } +9ms
rets-client:request response: { debugId: 1, headers: { 'cache-control': 'private', 'content-type': 'text/html', expires: 'Mon, 01 Jan 0001 00:00:00 GMT', 'rets-server': 'RETS-Paragon/1.0', 'rets-version': 'RETS/1.5', 'www-authenticate': 'Digest qop="auth",realm="HUDSON",nonce="2019-05-16T03:21:53.8b328b9a2a7239800da8f610b6d31326",opaque="",stale="true",domain="\rets\fnisrets.aspx\HUDSON"', 'x-server': 'A11', date: 'Thu, 16 May 2019 03:11:53 GMT', connection: 'close', 'content-length': '1293', vary: 'Accept-Encoding' }, statusCode: 401, body: '\r\n<html xmlns="http://www.w3.org/1999/xhtml">\r\n<head>\r\n<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>\r\n<title>401 - Unauthorized: Access is denied due to invalid credentials.</title>\r\n<style type="text/css">\r\n\r\n</style>\r\n</head>\r\n<body>\r\n
Comments
What client are you using for RETS access?
I was able to login successfully using your account information.
Hi Bruce, I've tried the RETS Python 3 Client library: https://github.com/opendoor-labs/rets, as well as the NodeJS rets-client library: https://www.npmjs.com/package/rets-cl.... Can you validate that the http headers I'm sending are correct? Any idea why I would be getting that error that my nonce is expired? From the debug log, it's clear that I'm returning the nonce sent to me in the initial 401 response from the RETS server. Can you also tell me how you were able to login?
I tested using a test app that uses the libRETS library.
I also tested by putting the login URL you listed in Chrome and entering credentials there too.
You can try it in the browser to see if the login is successful.
I would suggest using RETS-Verson=RETS/1.7.2 instead of 1.5 but it will login with either.
I've tried both of your suggestions and neither worked. I navigated in Chrome to: http://hudson.rets.paragonrels.com/re.... I was prompted for my username and password, entered it, and still got a 401. I am using the same username and password which works when I go through the front end application: http://idp.hudson.safemls.net/idp/Aut....
I've also tried specifying RETS 1.5, 1.7.2, and 1.8, none worked for me, same 401 Nonce Expired.
Make sure you don't have any trailing white space in your credentials.
If it doesn't work when you test in the browser, something is wrong with the credentials you are using.
I used the user name "NAM HOANG" you specified above.
It looks as though your password was changed twice on 5/13/2019.
My username and password work for http://idp.hudson.safemls.net/idp/Aut..., but NOT: http://hudson.rets.paragonrels.com/re.... Do you have an idea of why this might happen? The same credentials should be valid on both urls right?