Skip to content

404 Not Found when I try to get the data #524

Answered by jeromegamez
sboal94 asked this question in Q&A
Discussion options

You must be logged in to vote

Thank you for the detailed description! It was said on the discord server that Firebase has changed the way it names the default Realtime Database name on new projects, and I believe (hope 😅) that this is the case here.

Could you please check on https://console.firebase.google.com/project/_/database/ what the name of your database is? You can find it right of the 🔗 symbol and it should look something like https://<some-string>.firebaseio.com (By default, the SDK will build this URL from the project_id field in your service account JSON file).

Once you have that URL, you can configure it in the SDK with the withDatabaseUri() method of the Factory class, so for example:

$factory = (new Factory

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sboal94
Comment options

Answer selected by jeromegamez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #524 on December 13, 2020 20:03.