Using phRETS 2.0, attempting to download media for a given resource. I issue the following query to the server
$objects = $retsSession->GetObject('Property', 'ExtraLargePhoto', '1329630', '*', 0);
var_dump($objects);
The error I am receiving:
Warning: SimpleXMLElement::__construct(): Entity: line 1: parser error : Start tag expected, '<' not found in <path>\vendor\troydavisson\phrets\src\Http\Response.php on line 31
Warning: SimpleXMLElement::__construct(): --rets.object.content.boundary.1585267681520 in <path>\vendor\troydavisson\phrets\src\Http\Response.php on line 31
Warning: SimpleXMLElement::__construct(): ^ in <path>\vendor\troydavisson\phrets\src\Http\Response.php on line 31
Fatal error: Uncaught Exception: String could not be parsed as XML in <path>\vendor\troydavisson\phrets\src\Http\Response.php:31
Stack trace:
#0<path>\vendor\troydavisson\phrets\src\Http\Response.php(31): SimpleXMLElement->__construct('--rets.object.c...')
#1 <path>\vendor\troydavisson\phrets\src\Session.php(382): PHRETS\Http\Response->xml()
#2 <path>\vendor\troydavisson\phrets\src\Session.php(129): PHRETS\Session->request('GetObject', Array)
#3 <path>(109): PHRETS\Session->GetObject('Property', 'ExtraLargePhoto', '1329630', '*')
#4 {main}
thrown in <path>\vendor\troydavisson\phrets\src\Http\Response.php on line 31
Attempting to download just the location doesn't work either. It's almost like the response body is missing the reply code for the first object
Is there a setting I need to add when creating the session to have it not strip the first part of the response?