thisbejim / Pyrebase

A simple python wrapper for the Firebase API.
2.05k stars 525 forks source link

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

Open puf opened 3 years ago

puf commented 3 years ago

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.

listentothefrog commented 3 years ago

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

I hope it helps 👊

vamagithub commented 3 years ago

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

listentothefrog commented 3 years ago

I guess

raiyan22 commented 3 years ago

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 ! :)

listentothefrog commented 3 years ago

np @raiyan22

s1mpleTEK commented 2 years ago

thx for the tips @listentothefrog 😁

listentothefrog commented 2 years ago

your welcome