Skip to content

Unable to create the messaging service without a project ID #554

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

You must be logged in to vote

Now I see it! You are creating the factory twice! The first time you have a service account but no database url, the second time you have a database url but no service account. Since you overwrite the first one with the second one, that's the one you're using.

$factory = (new Factory())
    ->withServiceAccount('...')
    ->withDatabaseUri('...');

will work 😅

Replies: 2 comments 9 replies

Comment options

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

@marten66
Comment options

@jeromegamez
Comment options

Comment options

You must be logged in to vote
6 replies
@jeromegamez
Comment options

@jeromegamez
Comment options

@marten66
Comment options

@jeromegamez
Comment options

@marten66
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