firebase / firebase/firebase-tools
Unable to deploy Realtime Database rules via PowerShell 7.1
- Dominant language
- TypeScript
- Stars
- 4.5k
- Forks
- 1.3k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 84
Description
### [REQUIRED] Environment info
**firebase-tools:** 9.6.0 (run on PowerShell 7.1)
**Platform:** Windows
### [REQUIRED] Test case
Project with two Realtime Databases (default database is disabled). Second database is located in Belgium (europe-west1).
### [REQUIRED] Steps to reproduce
1. Create firebase database target for second database.
2. firebase deploy --only database:{target_name}
### [REQUIRED] Expected behavior
Correctly deploy database rules
### [REQUIRED] Actual behavior
Error occured while deploying database rules.
`[2021-03-10T12:53:14.573Z] <<< HTTP RESPONSE 404 {"server":"nginx","date":"Wed, 10 Mar 2021 12:53:14 GMT","content-type":"application/json; charset=utf-8","content-length":"283","connection":"keep-alive","access-control-allow-origin":"*","cache-control":"no-cache","strict-transport-security":"max-age=31556926; includeSubDomains; preload"}
[2021-03-10T12:53:14.573Z] <<< HTTP RESPONSE BODY {
"correctUrl" : "https://xxxxxxxxxxxxxxxxxxxx.europe-west1.firebasedatabase.app",
"error" : "Namespace xxxxxxxxxxxxxxxxxxxx lives in a different region. Please change your database URL to https://xxxxxxxxxxxxxxxxxxxx.europe-west1.firebasedatabase.app"
}`
Contributor guide
Research direction
Start by reproducing the issue with PowerShell 7.1 using `firebase deploy --only database:{target_name}` and the debug output for a second Realtime Database in europe-west1. Trace how the CLI handles the regional database URL; done means the database rules deploy successfully without the 404 region error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell, typescript
- Domain
- cli, databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100