【发布时间】:2018-07-11 00:49:38
【问题描述】:
我已经用 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
以下是我尝试过但不起作用的列表:
- 还原 index.json 中的更改
- 部署每个功能(让问题变得更糟,现在我的云功能都不起作用)
- 为@google-cloud/storage 生成一个新的keyFilename
- npm 更新 firebase-admin
- (重新启动)
我最后一次成功完成firebase deploy 是在昨晚。
我在linux上。
谢谢。
【问题讨论】:
-
感谢链接,不幸的是,他们建议删除的文件在我的系统上不存在。
-
我自己和其他几个今天下午遇到问题的开发者在此发表了评论。
-
这些错误从我的日志中显示的下午 12:35 到 12:45(今天 2018 年 1 月 31 日)之间开始。我希望这与我们今天的超级蓝血月无关!
标签: node.js firebase google-cloud-functions firebase-admin