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.
I'm facing the same problem. Running locally with default credentials works just fine. But running in my testing env. for Jest like Github Workflows, things does not work, as it does expect a Google OAuth2 access token. But no default credentials are set in the test-env, ofc.
Credential implementation provided to initializeApp() via the "credential" property failed to fetch a valid Google OAuth2 access token with the following error: "Could not load the default credentials. Browse to https://cloud.google.com/docs/authentication/getting-started for more information.
There's now five votes to be found in the submission by @jootten.
The solution works just fine locally, with default credentials set, but I expect this to work in a GitHub Workflow too, as I'm using a demo-tagget project (docs link).
I noticed that you've self-assigned this issue — thank you for looking into it! I just wanted to check in and see if there's any update on the progress. Let me know if you need any additional information from my side.
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: