Skip to content
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 init database does not work without a project ID #2981

Closed
samtstern opened this issue Dec 29, 2020 · 2 comments · Fixed by #3446
Closed

firebase init database does not work without a project ID #2981

samtstern opened this issue Dec 29, 2020 · 2 comments · Fixed by #3446

Comments

@samtstern
Copy link
Contributor

[REQUIRED] Environment info

firebase-tools: 9.1.0
Platform: macOS

[REQUIRED] Test case

Run firebase init and defer project selection:

? Which Firebase CLI features do you want to set up for this folder? Press Sp
ace to select features, then Enter to confirm your choices. Database: Configu
re Firebase Realtime Database and deploy rules

=== Project Setup

First, let's associate this project directory with a Firebase project.
You can create multiple project aliases by running firebase use --add,
but for now we'll just set up a default project.

? Please select an option: Don't set up a default project

=== Database Setup
i  database: ensuring required API firebasedatabase.googleapis.com is enabled...

Error: HTTP Error: 403, The caller does not have permission

[REQUIRED] Steps to reproduce

See above

[REQUIRED] Expected behavior

The firebase int flow should skip API enablement when there is no project ID and just set up local default rules/config.

[REQUIRED] Actual behavior

Fails with a 403 error.

@bkendall
Copy link
Contributor

@yuchenshi would you be able to look at this, or triage it to an appropriate someone?

@samtstern
Copy link
Contributor Author

Just ran into this one again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants