-
Notifications
You must be signed in to change notification settings - Fork 210
Value of config when DATABASE_URL and STORAGE_BUCKET_URL are not set, is not correct #829
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
Labels
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
RezaRahmati
added a commit
to RezaRahmati/firebase-functions
that referenced
this issue
Jan 4, 2021
RezaRahmati
added a commit
to RezaRahmati/firebase-functions
that referenced
this issue
Jan 4, 2021
joehan
added a commit
that referenced
this issue
Jan 19, 2021
This was closed by #840 |
samtstern
pushed a commit
that referenced
this issue
Feb 4, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Related issues
[REQUIRED] Version info
node: 12
firebase-functions: 3.13.0
firebase-tools: 8.19.0
firebase-admin: 9.4.2
[REQUIRED] Test case
[REQUIRED] Steps to reproduce
If we only set "GCLOUD_PROJECT" environment variable and then running
admin.initializeApp();
you get below error[REQUIRED] Expected behavior
Function setup with no error
[REQUIRED] Actual behavior
getting below error
Were you able to successfully deploy your functions?
no
Rootcause analysis
in
firebase-functions/src/setup.ts
Line 54 in c69c9bc
in
firebase-functions/src/setup.ts
Line 57 in c69c9bc
the current code is
so if value of
process.env.DATABASE_URL
beundifined
it will be converted to a string of'undefined'
which will result the databaseUrl or storgaeBucket become a string value of'undefined'
Fix:
Below code fixes the issues, I didn't have access to create branch and submit PR
The text was updated successfully, but these errors were encountered: