firebase-import
firebase-import copied to clipboard
Passing modern (2021) database URL is not accepted (for example with another region, but also TLD is new – firebasedatabase.app)
firebase-import --database_url https://foo-bar-default-rtdb.europe-west1.firebasedatabase.app --path / --json foo.json --service_account scripts/foo-bar-admin.json
causes
Error: FIREBASE FATAL ERROR: Cannot parse Firebase url. Please use https://<YOUR FIREBASE>.firebaseio.com
But attempting to pass this database URL in any other form fails from the firebase side:
[2021-03-18T17:52:51.311Z] @firebase/database: FIREBASE WARNING: Namespace foo-bar-default-rtdb lives in a different region. Please change your database URL to https://foo-bar-default-rtdb.europe-west1.firebasedatabase.app (https://foo-bar-default-rtdb.firebaseio.com)
Any update?