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 error with realtime database location asia-southeast1 #3455

Closed
jcyh0120 opened this issue Jun 6, 2021 · 2 comments · Fixed by #3460
Closed

Firebase init error with realtime database location asia-southeast1 #3455

jcyh0120 opened this issue Jun 6, 2021 · 2 comments · Fixed by #3460

Comments

@jcyh0120
Copy link

jcyh0120 commented Jun 6, 2021

I cannot init firebase project with firebase cli tool when checked with database in asia-southeast1

firebase-tools: 9.12.1

Platform: macOS

[REQUIRED] Test case

Please refer to the following reproduce part

[REQUIRED] Steps to reproduce

  1. Create a firebase project from firebase web console
  2. Go to database tab and enable realtime database
  3. Select asia-southeast1 from the dropdown menu
  4. Use firebase cli to init the project
  5. Check database and finish init

[REQUIRED] Expected behavior

I should be able to init the project with firebase-tools of the database


### [REQUIRED] Actual behavior
Error Message from firebase cli:

[2021-06-06T05:32:37.633Z] >>> HTTP REQUEST GET https://firebasedatabase.googleapis.com/v1beta/projects/gt-item-shop/locations/-/instances/gt-item-shop-default-rtdb

[2021-06-06T05:32:38.358Z] <<< HTTP RESPONSE 200 {"content-type":"application/json; charset=UTF-8","vary":"X-Origin, Referer, Origin,Accept-Encoding","date":"Sun, 06 Jun 2021 05:32:38 GMT","server":"ESF","cache-control":"private","x-xss-protection":"0","x-frame-options":"SAMEORIGIN","x-content-type-options":"nosniff","alt-svc":"h3-29=\":443\"; ma=2592000,h3-T051=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"","accept-ranges":"none","transfer-encoding":"chunked"}
[2021-06-06T05:32:38.359Z] Unexpected location value: asia-southeast1. Only us-central1, and europe-west1 locations are supported
[2021-06-06T05:32:38.360Z] FirebaseError: Unexpected location value: asia-southeast1. Only us-central1, and europe-west1 locations are supported
    at parseDatabaseLocation (/Users/jcyh/.nvm/versions/node/v13.11.0/lib/node_modules/firebase-tools/lib/management/database.js:132:19)
    at convertDatabaseInstance (/Users/jcyh/.nvm/versions/node/v13.11.0/lib/node_modules/firebase-tools/lib/management/database.js:173:19)
    at Object.getDatabaseInstanceDetails (/Users/jcyh/.nvm/versions/node/v13.11.0/lib/node_modules/firebase-tools/lib/management/database.js:44:16)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async Object.doSetup [as database] (/Users/jcyh/.nvm/versions/node/v13.11.0/lib/node_modules/firebase-tools/lib/init/features/database.js:70:27)
    at async init (/Users/jcyh/.nvm/versions/node/v13.11.0/lib/node_modules/firebase-tools/lib/init/index.js:19:9)
@google-oss-bot
Copy link
Contributor

This issue does not seem to follow the issue template. Make sure you provide all the required information.

@samtstern
Copy link
Contributor

@jcyh0120 thanks! This will be fixed by #3460

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

Successfully merging a pull request may close this issue.

3 participants