Catchable fatal error: Argument 1 passed to GuzzleHttp\Psr7\rewind_body()

555 views
Skip to first unread message

SUBIN P VASU

unread,
Apr 2, 2017, 12:33:04 PM4/2/17
to AdWords API Forum
Hi,
What kind of issues is this?
Every one gets it. No one got a solution.

This is for getCampaigns

Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://adwords.google.com/api/adwords/cm/v201702/CampaignService?wsdl' : failed to load external entity "https://adwords.google.com/api/adwords/cm/v201702/CampaignService?wsdl" in C:\wamp\www\google_adwords\vendor\googleads\googleads-php-lib\src\Google\AdsApi\Common\AdsSoapClient.php:65 Stack trace: #0 C:\wamp\www\google_adwords\vendor\googleads\googleads-php-lib\src\Google\AdsApi\Common\AdsSoapClient.php(65): SoapClient->SoapClient('https://adwords...', Array) #1 C:\wamp\www\google_adwords\vendor\googleads\googleads-php-lib\src\Google\AdsApi\AdWords\v201702\cm\CampaignService.php(144): Google\AdsApi\Common\AdsSoapClient->__construct('https://adwords...', Array) #2 [internal function]: Google\AdsApi\AdWords\v201702\cm\CampaignService->__construct(Array) #3 C:\wamp\www\google_adwords\vendor\googleads\googleads-php-lib\src\Google\AdsApi\Common\Util\Reflection.php(39): ReflectionClass->newInstanceArgs(Array) #4 C:\wamp\www\googl in C:\wamp\www\google_adwords\vendor\googleads\googleads-php-lib\src\Google\AdsApi\Common\AdsSoapClient.php on line 65


This is For Report downloading

Catchable fatal error: Argument 1 passed to GuzzleHttp\Psr7\rewind_body() must implement interface Psr\Http\Message\MessageInterface, null given, called in C:\wamp\www\adwords_php\vendor\googleads\googleads-php-lib\src\Google\AdsApi\Common\GuzzleLogMessageHandler.php on line 74 and defined in C:\wamp\www\adwords_php\vendor\guzzlehttp\psr7\src\functions.php on line 274


Please help me anybody.

Peter Oliquino

unread,
Apr 2, 2017, 11:23:05 PM4/2/17
to AdWords API Forum
Hi Subin,

Could you confirm if you are using the latest PHP client library version of the AdWords API? If you are using an old version, I would recommend that you upgrade to the latest version and refer to this document for the steps on how to upgrade. Additionally, you may also want to check the PHP version you are using as the new client library requires PHP 5.5.9 and higher.

If the issue still persists after upgrading, you may want to contact the PHP client library owners via this link.

Best regards,
Peter
AdWords API Team

david....@eoniantec.com

unread,
Apr 24, 2017, 9:42:38 AM4/24/17
to AdWords API Forum
Hi Peter,

I have this problem too. I'm running the latest version of Google Ads API PHP client library (v201702) and PHP 5.5.38. Could you help me with that?

I've checked this link but none of posted solutions are working on my side.


Catchable fatal error: Argument 1 passed to GuzzleHttp\Psr7\rewind_body() must implement interface Psr\Http\Message\MessageInterface, null given, called in /Applications/MAMP/htdocs/ReportingScripts/GG/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/GuzzleLogMessageHandler.php on line 74 and defined in /Applications/MAMP/htdocs/ReportingScripts/GG/vendor/guzzlehttp/psr7/src/functions.php on line 274

Peter Oliquino

unread,
Apr 24, 2017, 11:12:26 PM4/24/17
to AdWords API Forum
Hi David,

Seeing that the error is more related to the client library itself, you could directly get in touch with the client library owners through this link as they are more equipped to assist you with your concern.

Thanks and regards,
Peter
AdWords API Team
Reply all
Reply to author
Forward
0 new messages