-
Notifications
You must be signed in to change notification settings - Fork 584
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
Database SDK should warn when it builds databaseUrl from projectId #2337
Comments
@jfdt - Do you have thoughts here? |
We can improve the error message to make it clear that the database is in a different region (and needs a different URL). I don't think we need to have a warning if the url is inferred and works correctly though. |
Just to be clear even if the Thanks for bringing this up. We should work on improving the public documentation and surface a better error message in the SDK. |
Sorry, I take it back. Creating the databaseUrl today will change the config. |
FYI there are a lot of conversations going on about this topic, the future of the JSON plugin, etc. So before making any changes here make sure to talk to Mike D at least. @jsdt that would imply that the warning only happens after the first failed operation, right? Or does the RTDB SDK eagerly try to connect to the backend when instantiated? |
The Android SDK only connects to the backend when there is work to do. |
[READ] Step 1: Are you in the right place?
Yep
[REQUIRED] Step 2: Describe your environment
[REQUIRED] Step 3: Describe the problem
Steps to reproduce:
google-services.json
Because (3) precedes (4) the
json
file will not contain thefirebase_url
key and therefore the RTDB SDK will try and make up the database URL:However it doesn't print any warning when it does this, and for anyone who chooses Europe this is the wrong URL. See developer pain here:
firebase/codelab-friendlychat-android#137
Relevant Code:
See above
The text was updated successfully, but these errors were encountered: