Skip to content

Fatal error: Uncaught GuzzleHttp\Exception\ClientException: Client error: GET https://daily-flyer-srl-69f86.firebaseio.com/Admin resulted in a 404 Not Found #545

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

You must be logged in to vote

Hi 👋! I edited your post for readability (code formatting).

Please check at https://console.firebase.google.com/project/_/database/ for the name of your database (it's the URL that looks like https://<some string>.firebaseio.com.

If it's not https://daily-flyer-srl-69f86.firebaseio.com (this is the default URL generated from the SDK based on the project ID of your project), please use the withDatabaseUri() method on the factory:

$factory = (new Factory)
    ->withServiceAccount('path/to/your/service_account.json')
    ->withDatabaseUri('<URL from your Firebase console>');

$database = $factory->createDatabase();

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ghost
Comment options

@jeromegamez
Comment options

@jewel-rana
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