Fatal error 404 (GET request) #558
-
Hello, sorry it's me again ... I think all of this is correct:
But I have an error:
An idea ? |
Beta Was this translation helpful? Give feedback.
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(); |
Beta Was this translation helpful? Give feedback.
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_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 theFactory
class, so for example: