Many `500 Internal Server Error` Recently

437 views
Skip to first unread message

Nick Harris

unread,
Oct 7, 2019, 1:19:42 PM10/7/19
to AdWords API and Google Ads API Forum

In the last couple days using v201809/cm/CampaignService.php, I am getting a ton of Server error: 'POST https://oauth2.googleapis.com/token' resulted in a '500 Internal Server Error'. I haven't changed anything and everything was working fine before.

Something going on with the service? (Tried posting this to the php github library issues but was sent here) Here is stack trace:

[2019-10-04 06:06:08] production.ERROR: Server error: `POST https://oauth2.googleapis.com/token` resulted in a `500 Internal Server Error` response:
{
  "error": "internal_failure"
}
 {"exception":"[object] (GuzzleHttp\\Exception\\ServerException(code: 500): Server error: `POST https://oauth2.googleapis.com/token` resulted in a `500 Internal Server Error` response:
{
  \"error\": \"internal_failure\"
}
 at app/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113)
[stacktrace]
#0 app/vendor/guzzlehttp/guzzle/src/Middleware.php(66): GuzzleHttp\\Exception\\RequestException::create(Object(GuzzleHttp\\Psr7\\Request), Object(GuzzleHttp\\Psr7\\Response))
#1 app/vendor/guzzlehttp/promises/src/Promise.php(203): GuzzleHttp\\Middleware::GuzzleHttp\\{closure}(Object(GuzzleHttp\\Psr7\\Response))
#2 app/vendor/guzzlehttp/promises/src/Promise.php(156): GuzzleHttp\\Promise\\Promise::callHandler(1, Object(GuzzleHttp\\Psr7\\Response), Array)
#3 app/vendor/guzzlehttp/promises/src/TaskQueue.php(47): GuzzleHttp\\Promise\\Promise::GuzzleHttp\\Promise\\{closure}()
#4 app/vendor/guzzlehttp/promises/src/Promise.php(246): GuzzleHttp\\Promise\\TaskQueue->run(true)
#5 app/vendor/guzzlehttp/promises/src/Promise.php(223): GuzzleHttp\\Promise\\Promise->invokeWaitFn()
#6 app/vendor/guzzlehttp/promises/src/Promise.php(267): GuzzleHttp\\Promise\\Promise->waitIfPending()
#7 app/vendor/guzzlehttp/promises/src/Promise.php(225): GuzzleHttp\\Promise\\Promise->invokeWaitList()
#8 app/vendor/guzzlehttp/promises/src/Promise.php(62): GuzzleHttp\\Promise\\Promise->waitIfPending()
#9 app/vendor/guzzlehttp/guzzle/src/Client.php(106): GuzzleHttp\\Promise\\Promise->wait()
#10 app/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsGuzzleProxyHttpHandler.php(63): GuzzleHttp\\Client->send(Object(GuzzleHttp\\Psr7\\Request), Array)
#11 app/vendor/google/auth/src/OAuth2.php(502): Google\\AdsApi\\Common\\AdsGuzzleProxyHttpHandler->__invoke(Object(GuzzleHttp\\Psr7\\Request))
#12 app/vendor/google/auth/src/Credentials/UserRefreshCredentials.php(119): Google\\Auth\\OAuth2->fetchAuthToken(Object(Google\\AdsApi\\Common\\AdsGuzzleProxyHttpHandler))
#13 app/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/OAuth2TokenRefresher.php(66): Google\\Auth\\Credentials\\UserRefreshCredentials->fetchAuthToken(Object(Google\\AdsApi\\Common\\AdsGuzzleProxyHttpHandler))
#14 app/vendor/googleads/googleads-php-lib/src/Google/AdsApi/AdWords/AdWordsHeaderHandler.php(70): Google\\AdsApi\\Common\\Util\\OAuth2TokenRefresher->getOrFetchAccessToken(Object(Google\\Auth\\Credentials\\UserRefreshCredentials), Object(Google\\AdsApi\\Common\\AdsGuzzleProxyHttpHandler))
#15 app/vendor/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php(114): Google\\AdsApi\\AdWords\\AdWordsHeaderHandler->generateHttpHeaders(Object(Google\\AdsApi\\AdWords\\AdWordsSession))
#16 app/vendor/googleads/googleads-php-lib/src/Google/AdsApi/AdWords/v201809/cm/CampaignService.php(217): Google\\AdsApi\\Common\\AdsSoapClient->__soapCall('query', Array)

Google Ads API Forum Advisor Prod

unread,
Oct 7, 2019, 11:18:05 PM10/7/19
to adwor...@googlegroups.com
Hi Nick,

To better look into the issue, could you provide the complete SOAP request and response logs? If you haven't enabled logging yet, you can refer to this guide in PHP as to how.

If the SOAP request and response logs are not available, could you provide the generated request ID instead? You may send your reply using the Reply privately to author option.

Thanks and regards,
Peter
Google Ads API Team

ref:_00D1U1174p._5001UKMQC2:ref
Reply all
Reply to author
Forward
0 new messages