Fatal error 404 (GET request) #558
Answered
by
jeromegamez
Sheld0n-Cooper
asked this question in
Q&A
|
Hello, sorry it's me again ... I think all of this is correct: But I have an error: An idea ? |
Answered by
jeromegamez
Jan 28, 2021
Replies: 1 comment 3 replies
|
If you search for "404" in the discussions you will find the same question having been asked twice already 😅 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 Once you have that URL, you can configure it in the SDK with the $factory = (new Factory)
->withServiceAccount(../firebase.json)
->withDatabaseUri('https://my-database-name.firebaseio.com');
$database = $factory->createDatabase(); |
3 replies
Answer selected by
jeromegamez
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you search for "404" in the discussions you will find the same question having been asked twice already 😅
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 theproject_idfield in your service account JSON file).Once you have that URL, you can configure it in the SDK with the
withDatabaseUri()method of theFactoryclass, so for example: