You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Authentication fails in the firebase tasks emulator on
awaitqueue.enqueue(...) \\ fullsamplebelow
with the following error: Error scheduling task FirebaseAppError: Credential implementation provided to initializeApp() via the "credential" property failed to fetch a valid Google OAuth2 access token with the following error: "Error fetching access token: Error while making request: getaddrinfo ENOTFOUND metadata.google.internal. Error code: ENOTFOUND".
We were able to reproduce the bug reported here firebase/firebase-tools#7821 with the latest SDK and firebase tools versions.
The error does not occur when application default credentials are available and is thus easily overlooked.
Environment
Problem
Authentication fails in the firebase tasks emulator on
with the following error:
Error scheduling task FirebaseAppError: Credential implementation provided to initializeApp() via the "credential" property failed to fetch a valid Google OAuth2 access token with the following error: "Error fetching access token: Error while making request: getaddrinfo ENOTFOUND metadata.google.internal. Error code: ENOTFOUND".
We were able to reproduce the bug reported here firebase/firebase-tools#7821 with the latest SDK and firebase tools versions.
The error does not occur when application default credentials are available and is thus easily overlooked.
Steps to reproduce:
Error fetching access token: invalid_grant (reauth related error (invalid_rapt))
firebase-tools#7821.testOnRequest
function (http://127.0.0.1:5001/demo-project/us-central1/testOnRequest
).emulator-debug.log
Relevant Code:
Reproducible example that is even more minimal than in the mentioned issue:
The text was updated successfully, but these errors were encountered: