Replies: 2 comments
-
👋 Did you tried moving the initialization also within the |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you! I finally ended up solving with serverFactory + fastify.ready. Great! Thank you! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have googled for 2 whole nights and still can't solve the problem.
I have tried to follow this: https://fastify.dev/docs/v4.15.x/Guides/Serverless/#google-cloud-functions
and this: https://firebase.google.com/docs/functions/http-events?gen=2nd (See Using existing Express or Flask apps)
None of the above docs can help me.
I am using latest Fastify and 2nd gen Firebase Cloud. (I didn't want to use Express although it was successful)
My code is as below:
For local emulator, it's fine but it is failed to deploy to the Cloud: "Error: There was an error deploying functions"
"Could not create or update Cloud Run service api, Container Healthcheck failed. Revision 'api-00002-yif' is not ready and cannot serve traffic. The user-provided container failed to start and listen on the port defined provided by the PORT=8080 environment variable. Logs for this revision might contain more information."
It's so paintful. Please help. ><
Thank you so so so much....
Beta Was this translation helpful? Give feedback.
All reactions