Skip to content

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

Closed

Description

@samtstern

[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.

Activity

  1. bkendall commented on Feb 23, 2021

    @bkendall
    Contributor

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

  2. samtstern commented on May 26, 2021

    @samtstern
    ContributorAuthor

    Just ran into this one again.

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions