gpt4 book ai didi

node.js - 部署 Cloud Functions 后出现错误 : Could not refresh access token.

转载 作者:IT老高 更新时间:2023-10-28 23:20:50 25 4
gpt4 key购买 nike

我已经用 Firebase Cloud Functions 进行了一段时间的试验,今天我在 Firebase 控制台 > 功能 > 日志上部署后,对我的 index.json 文件(在要设置的文档中添加了一个字段)进行了小改动我遇到了这个奇怪的错误:

Auth error:Error: Could not refresh access token.

和:

Error: 16 UNAUTHENTICATED: Getting metadata from plugin failed with error: Could not refresh access token.
at new createStatusError (/user_code/node_modules/firebase-admin/node_modules/grpc/src/client.js:65:15)
at /user_code/node_modules/firebase-admin/node_modules/grpc/src/client.js:568:15

以下是我尝试但没有成功的列表:

  1. 还原 index.json 中的更改
  2. 部署每个功能(让问题变得更糟,现在我的云功能都不起作用)
  3. 为@google-cloud/storage 生成一个新的keyFilename
  4. npm 更新 firebase-admin
  5. (重新启动)

我最后一次成功地进行 firebase deploy 是在昨晚。我在linux上。

谢谢。

最佳答案

感谢大家的报告,无论是在这里,尤其是通过我们的技术支持 channel - 这些真的很有帮助。

我们认为这个问题是由我们的 Node.js 依赖链中的一个问题引起的,特别是对于 Firestore 的用户。我们刚刚发布了https://www.npmjs.com/package/google-gax 0.14.5 来解决这个问题。请:

  • 要么等待 npm 缓存获取新版本,要么在 package.json 中明确请求 google-gax 0.14.5。
  • 重新部署您的函数。

这应该可以解决问题。如果您仍然遇到问题,请告诉我们!

关于node.js - 部署 Cloud Functions 后出现错误 : Could not refresh access token.,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48550151/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com