401 error when using Location=1 for NEREN
GetObject works fine with Location=0, but when we try location =1 we get errors. For example:
Query 1:
GET http://neren.rets.paragonrels.com/rets/fnisrets.aspx/NEREN/getobject?Type=Photo&Resource=Property&ID=4784696:18&Location=1 HTTP/1.1
Accept: /
User-Agent: eNeighborhoods/2.0
RETS-Version: RETS/1.5
Authorization: Digest username="99267synd",realm="NEREN",nonce="2021-09-23T16:04:33",uri="/rets/fnisrets.aspx/NEREN/getobject",cnonce="redacted",nc=00000001,qop="auth",response="redacted",opaque=""
Host: neren.rets.paragonrels.com
Cookie: RETS-Session-ID=-95f6612c-dc46-4064-8173-c57532c5ee35-
Reply 1:
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: text/xml
Expires: Mon, 01 Jan 0001 00:00:00 GMT
Location: //cdnparap140.paragonrels.com/ParagonImages/Property/p14/NEREN/4784696/17/0/0/redacted/0/redacted/4784696-17.JPG
X-AspNetMvc-Version: 5.2
RETS-Server: RETS-Paragon/1.0
RETS-Version: RETS/1.5
MIME-Version: 1.0
Content-ID: 4784696
Object-ID: 18
X-Content-Label: A terrific event
Content-Transfer-Encoding: 8bit
X-Server: A140-02
Date: Thu, 23 Sep 2021 15:54:33 GMT
Content-Length: 52
<RETS ReplyCode="0" ReplyText="SUCCESS" >
</RETS>
Query 2:
GET http://neren.rets.paragonrels.com/rets/fnisrets.aspx/NEREN/getobject?Type=Photo&Resource=Property&ID=4784696:18&Location=1 HTTP/1.1
Accept: /
User-Agent: eNeighborhoods/2.0
RETS-Version: RETS/1.5
Host: neren.rets.paragonrels.com
Cookie: RETS-Session-ID=-95f6612c-dc46-4064-8173-c57532c5ee35-
Reply 2:
HTTP/1.1 401 Unauthorized
Cache-Control: private
Content-Type: text/html
Expires: Mon, 01 Jan 0001 00:00:00 GMT
X-AspNetMvc-Version: 5.2
RETS-Server: RETS-Paragon/1.0
RETS-Version: RETS/1.5
WWW-Authenticate: Digest qop="auth",realm="NEREN",nonce="2021-09-23T16:04:33",opaque="",stale="false",domain="\rets\fnisrets.aspx\NEREN"
X-Server: A140-02
Date: Thu, 23 Sep 2021 15:54:33 GMT
Content-Length: 1293
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<title>401 - Unauthorized: Access is denied due to invalid credentials.</title>
<style type="text/css">
<!--
body{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;}
fieldset{padding:0 15px 10px 15px;}
h1{font-size:2.4em;margin:0;color:#FFF;}
h2{font-size:1.7em;margin:0;color:#CC0000;}
h3{font-size:1.2em;margin:10px 0 0 0;color:#000000;}
#header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF;
background-color:#555555;}
#content{margin:0 0 0 2%;position:relative;}
.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}
-->
</style>
</head>
<body>
<div id="header"><h1>Server Error</h1></div>
<div id="content">
<div class="content-container"><fieldset>
<h2>401 - Unauthorized: Access is denied due to invalid credentials.</h2>
<h3>You do not have permission to view this directory or page using the credentials that you supplied.</h3>
</fieldset></div>
</div>
</body>
</html>
In short, listing data pulls fine, media resource pulls work fine, and regular getobject calls (location=0) work fine, it just fails when we try location=1.
Comments
What library or client are you using to pull data from RETS?
I would also suggest you set your RETS Version to RETS/1.8 or RETS/1.7.2.
This will keep you from having issues with truncated lookup Long Name values.
Also are you saying the first getobject request with Location=1 worked properly but the second one failed?
The first one works with Location=0 but when you change it to Location=1 that's when we get the 401 error.
Ok. Both Query1 and Query 2 have Location=1..
And Query 1 response shows the URL being returned in the Location header.
OK, let me point that out to the developer who gave me the queries and get back to you ASAP.
Were you able to get this figured out?