Make sure these boxes are checked before submitting your issue:
[x] Check that your version of Python is 3.4+
[x] Check that you are on the newest version of Pyrebase
[x] Check that Email/password provider is enabled in your Firebase dashboard under Auth -> Sign In Method.
At least on my current Firebase project, the JSON configuration got from the Firebase console has no "databaseURL" key.
Instead, the keys are:
{
"apiKey": ...,
"authDomain": ...,
"projectId": ...,
"storageBucket": .,
"messagingSenderId": ...,
"appId": ...,
"measurementId": ...
}
That means that the following line of pyrebase.Firebase.__init__ throws an exception:
|
self.database_url = config["databaseURL"] |
The fix seems to be to replace that line with the following code
if "databaseURL" in config:
self.database_url = config["databaseURL"]
but I don't know if that has knock-on consequences elsewhere in the codebase.
Make sure these boxes are checked before submitting your issue:
[x] Check that your version of Python is 3.4+
[x] Check that you are on the newest version of Pyrebase
[x] Check that Email/password provider is enabled in your Firebase dashboard under Auth -> Sign In Method.
At least on my current Firebase project, the JSON configuration got from the Firebase console has no "databaseURL" key.
Instead, the keys are:
{ "apiKey": ..., "authDomain": ..., "projectId": ..., "storageBucket": ., "messagingSenderId": ..., "appId": ..., "measurementId": ... }That means that the following line of
pyrebase.Firebase.__init__throws an exception:Pyrebase4/pyrebase/pyrebase.py
Line 36 in 3e00233
The fix seems to be to replace that line with the following code
but I don't know if that has knock-on consequences elsewhere in the codebase.