Hi Team,
Seeing random issues lately loading responses into DOM and HTTP fetch errors. This example occurred in the last hour within a minute of the process beginning. The process executing the report fetch has built-in sleeps to wait out potentially large reports. In this instance our process ran long enough to check the job status once, slept 30 seconds, and returned these errors after checking the job status a second time.
Any insights greatly appreciated - thanks!
Jason
SOAP Log XML:
HTTP/1.1 200 OK
Content-Type: text/xml; charset=UTF-8
Content-Encoding: gzip
Date: Wed, 12 Feb 2014 18:00:17 GMT
Expires: Wed, 12 Feb 2014 18:00:17 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Content-Length: 276
Server: GSE
Alternate-Protocol: 443:quic
<?xml version="1.0"?>
<soap:Envelope xmlns:soap="
http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<ResponseHeader xmlns="
https://www.google.com/apis/ads/publisher/v201306">
<requestId>0c130b90c74c76d2964daee73f8eb829</requestId>
<responseTime>163</responseTime>
</ResponseHeader>
</soap:Header>
<soap:Body>
<getReportJobResponse xmlns="
https://www.google.com/apis/ads/publisher/v201306">
<rval>
<id>1641516949</id>
<reportJobStatus>IN_PROGRESS</reportJobStatus>
</rval>
</getReportJobResponse>
</soap:Body>
</soap:Envelope>
Output:
Notice: Failed to load response into DOM: DOMDocument::loadXML() [[1]domdocument.loadxml]: Empty string supplied as input in /v201306/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php on line 250
Notice: Failed to load response into DOM: DOMDocument::loadXML() [[2]domdocument.loadxml]: Empty string supplied as input in /v201306/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php on line 360
Notice: Failed to load response into DOM: DOMDocument::loadXML() [[3]domdocument.loadxml]: Empty string supplied as input in /v201306/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php on line 378
Fatal error: Uncaught SoapFault exception: [HTTP] Error Fetching http body, No Content-Length, connection closed or chunked data in /v201306/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php:196
Stack trace:
#0 /v201306/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php(196): SoapClient->__doRequest('<?xml version="...', '
https://www.goo...', '', 1)
#1 [internal function]: AdsSoapClient->__doRequest('<?xml version="...', '
https://www.goo...', '', 1, 0)
#2 /v201306/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php(218): SoapClient->__soapCall('getReportJob', Array, NULL, Array, Array)
#3 /v201306/src/Google/Api/Ads/Dfp/v201306/ReportService.php(2689): AdsSoapClient->__soapCall('getReportJob', Array)
#4 /mtc_v2/master_import_from_report.php(338): ReportService->getReportJob('1641516949')
#5 {main}
thrown in /v201306/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php on line 196