-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FIREBASE_CONFIG and GCLOUD_PROJECT env vars missing (Node12) #859
Comments
Hi @dgaedcke. As you've seen from the logs, the Firebase AdminSDK requires When you deploy a Cloud Functions with the firebase cli tool (i.e. Finding the correct values for these env var depends on your Google Cloud project, but if you already have some functions deployed via However, it looks like the underlying issue is that the firebase CLI tool fails to run on your M1 macbook. Have to considered filing a bug in https://github.com/firebase/firebase-tools for that? |
@taeold Thanks Daniel ... I've reinstalled Firebase with: Filed that bug report ... thanks for the clarification!! |
Great. Let me know if you need help finding the values for Closing as the original issue is now resolved. |
I know my project ID but not sure about FIREBASE_CONFIG ... but even if I knew both values, I'm not sure where or how to deploy it given that firebase CLI is not working .... I'll reach out again here if I don't hear from the CLI team about my M1 issue ... thanks!! |
Related issues
I've found many links online about this being an issue with Node10 (suggesting reversion to Node8);
But nothing thats solved my issue
It did get better (less severe warning) when I added the top-line commented in the code below
[REQUIRED] Version info
Node v 12.20.1
firebase-admin@9.4.2
│ ├─┬ @firebase/database@0.8.3
│ │ ├── @firebase/auth-interop-types@0.1.5
│ │ ├─┬ @firebase/component@0.1.21
│ ├─┬ @firebase/database-types@0.6.1
│ │ └── @firebase/app-types@0.6.1
│ ├─┬ @google-cloud/firestore@4.9.1
└─┬ firebase-functions@3.13.1
I'm on an M1 mac and when I run:
firebase --version
I get: Abort trap: 6
[REQUIRED] Test case
due to the abort-trap above, I'm using gcloud to deploy as follows:
gcloud functions deploy newCommFeedRecord
--trigger-event providers/google.firebase.database/eventTypes/ref.create
--trigger-resource projects/_/instances/tsapi-prod-default-rtdb/refs/commNews/{date}/{window}/{record}
--runtime nodejs12 --project tsapi-prod
[REQUIRED] Steps to reproduce
Deploy this one function:
[REQUIRED] Expected behavior
function should deploy and run without errors
referencing this example:
https://github.com/firebase/functions-samples/blob/master/quickstarts/uppercase/functions/index.js
[REQUIRED] Actual behavior
warning: FIREBASE_CONFIG and GCLOUD_PROJECT env vars missing (Node12)
Firebase init will fail
Were you able to successfully deploy your functions?
yes, it deploys with the above listed errors
The text was updated successfully, but these errors were encountered: