question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

assets.get method throw `Error: no such type: google.ads.googleads.v8.errors.GoogleAdsFailure`

See original GitHub issue

Hey,

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:closed
  • Created 2 years ago
  • Comments:16 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
alexander-fenstercommented, Aug 5, 2021

This should be fixed in a google-gax dependency (in v2.22.0) that was just released, so please reinstall the dependencies and make sure npm ls google-gax shows 2.22.0 or newer.

1reaction
arditticommented, Aug 5, 2021

@arditti have you done anything related to it?

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found