assets.get method throw `Error: no such type: google.ads.googleads.v8.errors.GoogleAdsFailure`
See original GitHub issueHey,
Im using version 8.0.1 of this package, and encounter with a new error/behaviour: i ran this code several times, the exact same code, with the exact same input: (the ids been removed for obvious reason)
await customer.assets.get('customers/<CUSTOMER_ID>/assets/<ASSET_ID>');
and half of the times i get the following error:
/Users/user/dev/project-service/node_modules/protobufjs/src/namespace.js:383
throw Error("no such type: " + path);
^
Error: no such type: google.ads.googleads.v8.errors.GoogleAdsFailure
at Root.lookupType (/Users/user/dev/project-service/node_modules/protobufjs/src/namespace.js:383:15)
at GoogleErrorDecoder.decodeProtobufAny (/Users/user/dev/project-service/node_modules/google-gax/src/googleError.ts:67:28)
at /Users/user/dev/project-service/node_modules/google-gax/src/googleError.ts:112:14
at Array.map (<anonymous>)
at /Users/user/dev/project-service/node_modules/google-gax/src/googleError.ts:111:57
at Array.forEach (<anonymous>)
at GoogleErrorDecoder.decodeRpcStatusDetails (/Users/user/dev/project-service/node_modules/google-gax/src/googleError.ts:106:15)
at Immediate.callback (/Users/user/dev/project-service/node_modules/google-gax/src/call.ts:123:39)
at processImmediate (node:internal/timers:466:21)
at process.topLevelDomainCallback (node:domain:147:15)
at process.callbackTrampoline (node:internal/async_hooks:128:24)
Even when i try to wrap this piece of code with try/catch block - it doesn’t seems to help, and my entire process crash.
reverting back to version 5.2.0 didn’t helped.
Please advise.
Issue Analytics
- State:
- Created 2 years ago
- Comments:16 (2 by maintainers)
Top Results From Across the Web
Handle Partial Failure - Ads API - Google Developers
GoogleAdsException is the base class for most exceptions thrown by an API request. // Instances of this exception have a message and a...
Read more >ApiException metadata not decoded · Issue #182 - GitHub
The method i used in this case is '\Google\Ads\GoogleAds\V2\Services\Gapic\ ... ApiException was thrown with message '{ "message": "Request ...
Read more >Fix error messages with Uploaded ads - Google Ads Help
When uploading creatives in Google Ads, you may receive an error message. In most situations, the problem can be fixed by altering your...
Read more >Unable to remove User Interest from AdGroups - Google Groups
I have an issue with removing any User Interest Criterions from AdGroups. I can remove AdGroup Criterions for Age and Gender, but if...
Read more >Specified type 'google_ads_failure' does not exist in Google ...
Specified type 'google_ads_failure' does not exist in Google Ads API v8 · I get a partial error · And the code fails to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This should be fixed in a
google-gax
dependency (in v2.22.0) that was just released, so please reinstall the dependencies and make surenpm ls google-gax
shows 2.22.0 or newer.Sadly we didn’t find any workaround yet. we are looking for any clue in order to solve it.
will keep this thread updated on any findings.