I've been experimenting for a while with Firebase Cloud Functions, today I made a minor change to my index.json file (added a field to a document to be set), after deploying on the Firebase Console > Functions > Logs I've got this weird errors:
Auth error:Error: Could not refresh access token.
and:
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
Here's a list of things I tried but did not work:
- revert the change in index.json
- deploy every function (made the problem worse, now none of my cloud functions is working)
- generate a new keyFilename for @google-cloud/storage
- npm update firebase-admin
- (rebooting)
The last time I did a firebase deploy
successfully was last night.
I'm on linux.
Thank you.