Closed timothymarois closed 6 years ago
Hi Timothy,
Are you using DFP or AdWords?
Thanks, Thang Duong
Hello Timothy,
To help us debug this, is it possible for you to capture something before it reaches the line throwing that error?
Best, Knack
@thangduo We are using AdWords.
@fiboknacky Not really sure. It's been running for months without an issue, it ran a little today and then stopped due to this error. And I never made changes to the code or updated the packages, so I wonder if the AdWords response has changed causing it to fail. If I was reaching any limits, wouldn't it have a proper exception error thrown?
@fiboknacky I misunderstood what you asked, yes it's possible. What would you have in mind?
I narrowed it down to running the method downloadReport
from ReportDownloader
I'm not quite sure yet too, but the only part that we use Guzzle Middleware is in this file. It'll log a request and response for you. Could you please investigate around this part first?
As for the change in the response, I'm not aware of such a change. And if there is a change, I wouldn't expect an error message to be like that. To the best of my knowledge, it looks like Guzzle in your system suddenly disappears as it can't find the middleware to work with.
I ran a test with GuzzleHttp
by itself and it's able to request and access URLs, so the package itself appears to be intact. One thing I noticed to reproduce the error, I tried to request access to a URL that does not exist, and the Uncaught exception is thrown. For the AdWords API, is there a way I can pull a log for the requested URLs it's trying to reach?
And the other thing, if the API rejects my URL requests due to limits? Though I feel the error would be more graceful.
After some further investigation. I found out the API was linked to an email that was deleted today, though the original AdWords account manager is still running (just moved) to another account email. So the system I was running did not properly parse the error message, I then tried within a clean environment and it revealed itself. Account has been deleted
Thanks anyway, I wonder if the API should have a better way to parse the error exception.
Hello, today our API has been shut down because of the following error. We have been running this API for a few years and have updated to the latest versions when released. However we have not changed anything recently, in fact, it just started early this morning, looks like something someone released internally causing this error to reveal itself.
I know this is more on the
GuzzleHttp
package, however, nothing has been changed there, or on theGoogleAds
package, the only thing I can see is the API response that is causing this.Hopefully, someone can pinpoint a solution here, I am using
v201705
I testedv201708
and same issue.To narrow my use down, I am using
ReportDownloader
when trying to pull a report, I receive this error.