Ask Your Question
0

401 error when using Location=1 for NEREN

asked 2021-10-19 13:34:03 -0600

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.

edit retag flag offensive close merge delete

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.

bwolven gravatar imagebwolven ( 2021-10-20 10:00:30 -0600 )edit

Also are you saying the first getobject request with Location=1 worked properly but the second one failed?

bwolven gravatar imagebwolven ( 2021-10-20 10:06:34 -0600 )edit

The first one works with Location=0 but when you change it to Location=1 that's when we get the 401 error.

cyndi.edwards gravatar imagecyndi.edwards ( 2021-10-20 10:07:46 -0600 )edit

Ok. Both Query1 and Query 2 have Location=1..
And Query 1 response shows the URL being returned in the Location header.

bwolven gravatar imagebwolven ( 2021-10-20 10:09:58 -0600 )edit

OK, let me point that out to the developer who gave me the queries and get back to you ASAP.

cyndi.edwards gravatar imagecyndi.edwards ( 2021-10-20 10:11:06 -0600 )edit

Were you able to get this figured out?

bwolven gravatar imagebwolven ( 2021-11-02 11:56:19 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-11-02 12:00:00 -0600

We have decided to move forward using the Media Resource instead of GetObject.

edit flag offensive delete link more

Comments

Ok. Thanks for letting me know.

bwolven gravatar imagebwolven ( 2021-11-02 12:03:05 -0600 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2021-10-19 13:34:03 -0600

Seen: 148 times

Last updated: Oct 19 '21