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
I'm using useFirebaseAdminDefaultCredential in initAuth. However, when I run the server, it gives me the following error:
FirebaseAppError: Failed to determine project ID: Error while making request: getaddrinfo ENOTFOUND metadata.google.internal. Error code: ENOTFOUND
at /home/wasaykhan/projects/next-js/server-final/node_modules/firebase-admin/lib/app/credential-internal.js:192:19
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
errorInfo: {
code: 'app/invalid-credential',
message: 'Failed to determine project ID: Error while making request: getaddrinfo ENOTFOUND metadata.google.internal. Error code: ENOTFOUND'
},
codePrefix: 'app'
}
In env.local, I have exported GOOGLE_APPLICATION_CREDENTIALS with the path to my service account key file.
I have tried setting useFirebaseAdminDefaultCredential to false and manually providing the options for the firebaseAdminInitConfig from my service account file with no luck. firebaseAdminInitConfig: { credential: { project_id: "", private_key: "", client_email: "", }, //databaseURL: 'https://my-example-app.firebaseio.com', I am not using Realtime Database },
Any help, please? I'd be really grateful if someone could help me out
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm using
useFirebaseAdminDefaultCredential
in initAuth. However, when I run the server, it gives me the following error:FirebaseAppError: Failed to determine project ID: Error while making request: getaddrinfo ENOTFOUND metadata.google.internal. Error code: ENOTFOUND
at /home/wasaykhan/projects/next-js/server-final/node_modules/firebase-admin/lib/app/credential-internal.js:192:19
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
errorInfo: {
code: 'app/invalid-credential',
message: 'Failed to determine project ID: Error while making request: getaddrinfo ENOTFOUND metadata.google.internal. Error code: ENOTFOUND'
},
codePrefix: 'app'
}
In env.local, I have exported GOOGLE_APPLICATION_CREDENTIALS with the path to my service account key file.
I have tried setting
useFirebaseAdminDefaultCredential
to false and manually providing the options for thefirebaseAdminInitConfig
from my service account file with no luck.firebaseAdminInitConfig: { credential: { project_id: "", private_key: "", client_email: "", }, //databaseURL: 'https://my-example-app.firebaseio.com', I am not using Realtime Database },
Any help, please? I'd be really grateful if someone could help me out
Beta Was this translation helpful? Give feedback.
All reactions