Pyrebase icon indicating copy to clipboard operation
Pyrebase copied to clipboard

firebaseConfig may no longer contain databaseURL key, leading to KeyError: 'databaseURL'

Open puf opened this issue 4 years ago • 7 comments

Context: https://stackoverflow.com/q/65873454

firebaser here First off: thank you so much for your continued work on this library! 🙏🔥

Since late 2020 Firebase no longer automatically creates a Realtime Database instance for new projects. This is so that users can pick the location where the database is created, as this is now possible both in Europe and in the US.

This change means that not all projects will have a Realtime Database instance, and that the databaseURL key may not be present in (valid) firebaseConfig snippets. The Firebase SDKs have been updated to deal with this key being optional, but Pyrebase seems to still require it.

See the context link for more info, and some possible workarounds. Reach out to me if you have any additional questions, about this or other Firebase features that your library wraps.

puf avatar Jan 24 '21 17:01 puf

It is simple to solve this issue, basically you have to type this 👉 "databaseURL": "yourstoragebucketurl.com"

I hope it helps 👊

sellareddy18 avatar Feb 13 '21 18:02 sellareddy18

I would like to work on this PR. Can we use label "First time Contribution" to this issue?

vamagithub avatar Feb 17 '21 13:02 vamagithub

I guess

sellareddy18 avatar Feb 18 '21 13:02 sellareddy18

It is simple to solve this issue, basically you have to type this 👉 "databaseURL": "yourstoragebucketurl.com"

I hope it helps 👊

this actually helps !! Thank you ! :)

raiyan22 avatar Mar 15 '21 13:03 raiyan22

np @raiyan22

sellareddy18 avatar Mar 15 '21 18:03 sellareddy18

thx for the tips @listentothefrog 😁

s1mpleTEK avatar Dec 01 '21 04:12 s1mpleTEK

your welcome

sellareddy18 avatar Dec 06 '21 00:12 sellareddy18