错误:16UNAUTHENTICATED:无法检索身份验证元数据,错误:无法刷新访问令牌

完整的错误如下:

Unhandled error Error: 16 UNAUTHENTICATED: Failed to retrieve auth metadata with error: Could not refresh access token: Unsuccessful response status code. Request failed with status code 500
at Object.callErrorFromStatus (/workspace/node_modules/@grpc/grpc-js/build/src/call.js:31:26)
at Object.onReceiveStatus (/workspace/node_modules/@grpc/grpc-js/build/src/client.js:327:49)
at Object.onReceiveStatus (/workspace/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:299:181)
at /workspace/node_modules/@grpc/grpc-js/build/src/call-stream.js:145:78
at processTicksAndRejections (internal/process/task_queues.js:79:11)
Caused by: Error
at Query._get (/workspace/node_modules/@google-cloud/firestore/build/src/reference.js:1449:23)
at Query.get (/workspace/node_modules/@google-cloud/firestore/build/src/reference.js:1438:21)
at Object.getTeacherDataWithFilters (/workspace/lib/teachers/methods.js:168:81)
at /workspace/lib/teachers/callable.js:22:36
at func (/workspace/node_modules/firebase-functions/lib/providers/https.js:273:32)
at processTicksAndRejections (internal/process/task_queues.js:97:5) {
code: 16,
details: 'Failed to retrieve auth metadata with error: Could not refresh access token: Unsuccessful response status code. Request failed with status code 500',
metadata: Metadata { internalRepr: Map {}, options: {} }

我最近部署到了 firebase 函数,现在我收到了这个错误。我不知道发生了什么,我找不到任何特定于此的东西

回答

我已经找到了真正的原因,这就是为什么我要回答我自己的问题。我收到此错误的原因是附加到该项目的默认服务帐户主要<project-ID>@appspot.gserviceaccount.comdisabled。启用后,一切正常。


以上是错误:16UNAUTHENTICATED:无法检索身份验证元数据,错误:无法刷新访问令牌的全部内容。
THE END
分享
二维码
< <上一篇
下一篇>>