Ask Your Question

Revision history [back]

RETS request returning error 412 - Help?

We use custom PHP scripts to query RETS and it has been working flawlessly for several years now. As of August 3rd we stopped receiving data and got the following message returned: "412 - Precondition set by the client failed when evaluated on the Web server." We have not made any changes or adjustments on our end and we seem to still be logging in ok. The RETS base URL we are querying is http://steamboat.rets.fnismls.com. Our query string is "StandardNames=0&SearchType=Property&Class=RE_1&Format=COMPACT-DECODED&Query=*&QueryType=DMQL2". One service person looking at the issue stated that they are able to run the query successfully and that the problem may lay in the headers being send. We use cURL to post the query information, and do not understand what "headers" are in this context or what we would need to change. Any help or insight is greatly appreciated!

RETS request returning error 412 - Help?

We use custom PHP scripts to query RETS and it has been working flawlessly for several years now. As of August 3rd we stopped receiving data and got the following message returned: "412 - Precondition set by the client failed when evaluated on the Web server." We have not made any changes or adjustments on our end and we seem to still be logging in ok. The RETS base URL we are querying is http://steamboat.rets.fnismls.com. Our query string is "StandardNames=0&SearchType=Property&Class=RE_1&Format=COMPACT-DECODED&Query=*&QueryType=DMQL2". One service person looking at the issue stated that they are able to run the query successfully and that the problem may lay in the headers being send. We use cURL to post the query information, and do not understand what "headers" are in this context or what we would need to change. Any help or insight is greatly appreciated!

UPDATE: Thanks for the insight, bwolven. I thought I'd add some more information to help. Below is what is what we are getting in the cookie file:

steamboat.rets.fnismls.com FALSE / FALSE 0 RETS-Session-ID -855452d4-76a6-4114-a58d-46e440ce2b83-

I'm not sure if receiving the "FALSE / FALSE" is an issue or not. I'll also include what is being returned on the login below (I've replaced the member name and user numbers):

< RETS ReplyCode="0" ReplyText="Login Request" > < RETS-RESPONSE > MemberName=Abcd E Fghijk User=111111111,1,1,111 Broker=347,347 MetadataVersion=16.3.22666 MinMetadataVersion=16.3.22666 TimeoutSeconds=7200 GetMetadata=/rets/fnisrets.aspx/STEAMBOAT/getmetadata GetObject=/rets/fnisrets.aspx/STEAMBOAT/getobject Login=/rets/fnisrets.aspx/STEAMBOAT/login Logout=/rets/fnisrets.aspx/STEAMBOAT/logout Search=/rets/fnisrets.aspx/STEAMBOAT/search < /RETS-RESPONSE > < /RETS >