UNKNOWN: Getting metadata from plugin failed with error: invalid_grant

오늘도 삽질중·2024년 1월 18일
0

에러코드 공유

목록 보기
6/6
rror: 2 UNKNOWN: Getting metadata from plugin failed with error: invalid_grant
    at callErrorFromStatus (/Users/soyoungpark/Desktop/Alan_third-party/node_modules/@grpc/grpc-js/build/src/call.js:31:19)
    at Object.onReceiveStatus (/Users/soyoungpark/Desktop/Alan_third-party/node_modules/@grpc/grpc-js/build/src/client.js:192:76)
    at Object.onReceiveStatus (/Users/soyoungpark/Desktop/Alan_third-party/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:360:141)
    at Object.onReceiveStatus (/Users/soyoungpark/Desktop/Alan_third-party/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:323:181)
    at /Users/soyoungpark/Desktop/Alan_third-party/node_modules/@grpc/grpc-js/build/src/resolving-call.js:99:78
    at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
for call at
    at ServiceClientImpl.makeUnaryRequest (/Users/soyoungpark/Desktop/Alan_third-party/node_modules/@grpc/grpc-js/build/src/client.js:160:32)
    at ServiceClientImpl.<anonymous> (/Users/soyoungpark/Desktop/Alan_third-party/node_modules/@grpc/grpc-js/build/src/make-client.js:105:19)
    at /Users/soyoungpark/Desktop/Alan_third-party/node_modules/google-ads-node/build/src/v14/google_ads_service_client.js:366:29
    at wrappedCall (/Users/soyoungpark/Desktop/Alan_third-party/node_modules/google-gax/build/src/paginationCalls/pagedApiCaller.js:86:20)
    at /Users/soyoungpark/Desktop/Alan_third-party/node_modules/google-gax/build/src/normalCalls/timeout.js:44:16
    at repeat (/Users/soyoungpark/Desktop/Alan_third-party/node_modules/google-gax/build/src/normalCalls/retries.js:80:25)
    at /Users/soyoungpark/Desktop/Alan_third-party/node_modules/google-gax/build/src/normalCalls/retries.js:119:13
    at OngoingCallPromise.call (/Users/soyoungpark/Desktop/Alan_third-party/node_modules/google-gax/build/src/call.js:67:27)
    at PagedApiCaller.call (/Users/soyoungpark/Desktop/Alan_third-party/node_modules/google-gax/build/src/paginationCalls/pagedApiCaller.js:118:25)
    at /Users/soyoungpark/Desktop/Alan_third-party/node_modules/google-gax/build/src/createApiCall.js:108:30 {
  code: 2,
  details: 'Getting metadata from plugin failed with error: invalid_grant',
  metadata: Metadata { internalRepr: Map(0) {}, options: {} },
  note: 'Exception occurred in retry method that was not classified as transient'
}

구글 ads api를 이용해서 데이터를 요청하려던 중 이런 오류를 만났다.
해결: refreshtoken을 재발급받자.

참고
https://groups.google.com/g/adwords-api/c/VR6vKQBYtEk

profile
의미없는 삽질은 없다1

0개의 댓글