Cloud Functions for Firebase sometimes have invalid credential error
Doesn't appear every time, but sometimes this error appears in the log:
FIREBASE WARNING: {"code":"app/invalid-credential","message":"Credential implementation provided to initializeApp() via the \"credential\" property failed to fetch a valid Google OAuth2 access token with the following error: \"read ECONNRESET\"."}
Is there a way to deal with this error like trying again? Or is it okay to ignore?
+3
Yuan gao
source
to share
2 answers
Just make sure to automatically sync your computer. and not tame,
And yours XXX......json
from firebase is the last one loaded. (if you are not sure, download it again - and this file will be newer)
which helped me.
0
ofir_aghai
source
to share
I am also facing this problem. It looks like it tries again and gets the job done, but the cloud functions take a while to process the data.
-1
abhijit Das
source
to share