dmotz / trystero

✨🤝✨ Build instant multiplayer webapps, no server required — Magic WebRTC matchmaking over BitTorrent, Nostr, MQTT, IPFS, Supabase, and Firebase
https://oxism.com/trystero
MIT License
1.33k stars 92 forks source link

Firebase - Service database is not available #56

Closed matthewjumpsoffbuildings closed 1 year ago

matthewjumpsoffbuildings commented 1 year ago

When trying to intialise a Firebase setup:

component.js:111 Uncaught Error: Service database is not available
    at Provider.getImmediate (component.js:111:15)
    at getDatabase (database.js:9780:45)
    at init (firebase.js:18:34)
    at firebase.js:21:14
    at crypto-36a3f9c0.js:30:10

I tried using the app ID, as well as the realtime database url, but to no avail.

According to this stack overflow it may be because the version of the Firebase SDK this project uses is out of date?

https://stackoverflow.com/questions/70823077/uncaught-error-service-database-is-not-available-firebase-javascript

matthewjumpsoffbuildings commented 1 year ago

I created this pull request https://github.com/dmotz/trystero/pull/57 that solves this issue, turns out the code to generate a database URL from the project ID was not working

dmotz commented 1 year ago

Fixed in 0.14.0