Closed szaleq closed 10 months ago
I found a few problems with this issue:
Hi @szaleq, I'm unable to reproduce the issue using the setup and versions you described above. Can you try deploying again with firebase deploy --debug
and share with me the contents of the resulting firebase-debug.log
?
Hey @szaleq. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 3 days I will close it automatically.
If you have more information that will help us get to the bottom of this, just add a comment!
Since there haven't been any recent updates here, I am going to close this issue.
@szaleq if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.
[REQUIRED] Version info
node: 18
firebase-functions: 4.5.0
firebase-tools: 12.8.1
firebase-admin: 11.11.0
[REQUIRED] Test case
I have a simple function using
v2
pubsub trigger, which should capture published message and save it into firestore. The function looks like this:[REQUIRED] Steps to reproduce
Just create a function using
onMessagePublished
.[REQUIRED] Expected behavior
I expect the function to get executed with the event containing published message data as a param.
[REQUIRED] Actual behavior
While working perfectly well in local development using firebase emulators, this function's code doesn't get executed when deployed because of an error in
firebase-functions
code:Were you able to successfully deploy your functions?
Yes, I managed to successfully deploy the function, but needed to use
gcloud
CLI, because when usingfirebase deploy
command, I received an error stating that it failed to create the topic (which is weird, because the topic was already created in pubsub and also the docs say that cloud functions will not create topics and topics should be present during deployment - which was fulfilled).