-
Notifications
You must be signed in to change notification settings - Fork 201
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
Can't determine Firebase Database URL when upgrading to 1.0 #228
Comments
Hey @PascalPrecht Your usage is fine. What the migration guide is trying to say is that Sounds like you're running into a CLI bug that was fixed recently. Can you update by running |
Hey @laurenzlong, thank you for the quick feedback. Good point, I thought 3.18.1 was the latest available version. I'll update the firebase-tools and keep you posted here! |
This commit is a reproducible for firebase/firebase-functions#228
This commit is a reproducible for firebase/firebase-functions#228
Okay so I just tried it with Not sure if you're up for it, but I've created a reproducible here: 0x-r4bbit/machinelabs@4da5272 In
This assume you're logged in with If you don't have the time to run it yourself, no problem at all. I just wanted to be sure the information is there just in case you're interested. |
Do you also have a global firebase-tools installed? I see your "deploy" script in package.json is
|
Hi @laurenzlong as a matter of fact, I don't have firebase-tools installed globally and always rely on the locally installed ones. npm scripts will use the locally installed version automatically as well. I'm sorry I can't give any more pointers. I talked to a friend who didn't have problems upgrading at all. I'll have another look.. |
@laurenzlong sorry that this took so long. I found some time to dig deeper into this and I guess I have to facepalm myself. The answer to this problem is in the stacktrace of the error:
It turns out that we have another Closing this as resolved. And thank you for your support, I really appreciate it. |
This seems to be related to #220. However, the issue has been closed, even though this is still reproducible.
Basically what happens is that firebase(tools) isn't able to determine the firebase database URL.
I'm aware that
admin.initializeApp()
doesn't take any config values anymore as per the migration guideHowever, according to the API docs,
AppOptions
are still supported, they are just optional. Read here for verification.Now, in my particular case, I do need to pass
AppOptions
because we have to setupAppOptions.credential
usingadmin.cert()
. On this note, I'd be happy if someone can tell me if this is still the way to go, even thoughinitializeApp()
is "supposed" to be called without options :)I'm not sure if my config above ^ is causing this, but deploying my firebase functions result in:
Any updates on an actual fix for this? All related issues I've found mainly suggest workarounds, or have been close with works-on-my-machine™.
Version info
firebase-functions:
1.0.1
firebase-tools:
3.18.1
firebase-admin:
5.12.0
The text was updated successfully, but these errors were encountered: