PHRETS
PHRETS copied to clipboard
Uncaught PHRETS\Exceptions\RETSException: Miscellaneous Search Error
Everything was working normally, but during the past two days the error started to appear please click the link: http://192.81.168.160/~kelownarealestat/mls-listings/dealing-with-lists/remove-listings/kwEwDUDi4dqOoO7LcTdn?rets-account=rets-for-all Provider is CREA Canada. Do you have any suggestions? Thanks in advance
Hi,
I got the same issue, and I am also using CREA. Everything worked fine until today. Not sure is it a CREA server problem or not, but I still able to get data with Postman.
What version of PHRETS are you running? There was an updated version pushed 2 days ago.
On Sun, Mar 22, 2020 at 10:36 PM PhongNguyen512 [email protected] wrote:
Hi,
I got the same issue, and I am also using CREA. Everything worked fine until today. Not sure is it a CREA server problem or not, but I still able to get data with Postman.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/troydavisson/PHRETS/issues/257#issuecomment-602331885, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACN32XWNDFN27JGETCCCRLRI3DKTANCNFSM4LRPNRXA .
Hi @troydavisson ,
I just updated Phrets from 2.6.1 => 2.6.2, and the error still the same. When I manually checked the Session file in Phrets (vendor/troydavisson/phrets/src/Session.php:424), the error detect in the following code:
if (!in_array($rc, [0, 20201, 20403])) {
throw new RETSException($xml['ReplyText'], (int)$xml['ReplyCode']);
}
For now, I just temporarily removed '!' and 0 in if clause, and it works normally for now. This is just my temporary solution for now.
Note: I just tried to get all ID from the CREA server, and put dd() inside the if clause above. I saw all ID in DATA object, but the ReplyCode is 20203 - Miscellaneous Search Error. I also realized the response I got from CREA via Postman also include the same ReplyCode. Therefore, I assume this is the CREA server problem. I hope this helps. Sorry for my bad and long English.
@PhongNguyen512 Thank you for introducing this temporary solution. @troydavisson I was on the previous version 2.6.1, but the problem is still in the new version 2.6.2 Please note that GetObject works fine, I only found the problem with using Search function. Note that everything works if we use the old version proposed by CREA: https://support.crea.ca/DDF#/discussion/20/crea-data-distribution-code-sample-in-php Thanks for your interest, I hope that there will be a solution soon
@ttouf I think the CREA is OK for now. My code works normally.
Thant's true. Thanks