Opteo / google-ads-api

Google Ads API client library for Node.js
https://opteo.com
MIT License
270 stars 90 forks source link

Error: 16 UNAUTHENTICATED: Failed to retrieve auth metadata with error: invalid_grant #407

Closed adnanhassan23 closed 2 years ago

adnanhassan23 commented 2 years ago

I am using this package for reporting and keyword plan purposes in our application. it was working perfectly fine some time ago But now i'm facing this error

Error: 16 UNAUTHENTICATED: Failed to retrieve auth metadata with error: invalid_grant at Object.callErrorFromStatus (C:\Users\ssc\Desktop\google api final\node_modules\@grpc\grpc-js\build\src\call.js:31:26) at Object.onReceiveStatus (C:\Users\ssc\Desktop\google api final\node_modules\@grpc\grpc-js\build\src\client.js:180:52) at Object.onReceiveStatus (C:\Users\ssc\Desktop\google api final\node_modules\@grpc\grpc-js\build\src\client-interceptors.js:365:141) at Object.onReceiveStatus (C:\Users\ssc\Desktop\google api final\node_modules\@grpc\grpc-js\build\src\client-interceptors.js:328:181) at C:\Users\ssc\Desktop\google api final\node_modules\@grpc\grpc-js\build\src\call-stream.js:182:78 at processTicksAndRejections (node:internal/process/task_queues:78:11) { code: 16, details: 'Failed to retrieve auth metadata with error: invalid_grant', metadata: Metadata { internalRepr: Map(0) {}, options: {} }, note: 'Exception occurred in retry method that was not classified as transient' }

sgpascoe commented 2 years ago

I am having the same issue as of today

sgpascoe commented 2 years ago

@WillCooter do you know what could be causing this?

sgpascoe commented 2 years ago

@adnanhassan23 what was the solution?