Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Firebase error while deploying after upgrading to V2

After upgrading from Firebase Functions V1 to V2 and updating my Node.js code to align with the V2 documentation, I encounter the following error when attempting to deploy Firebase functions. Any idea how to fix this?
Error details:
Default STARTUP TCP probe failed 1 time consecutively for container "worker" on port 8080. The instance was not started. Connection failed with status CANCELLED.

run.googleapis.com…ernalServices.CreateInternalService…project_name/revisions/timer-00001-xis
Ready condition status changed to False for Revision timer-00001-xis with message: The user-provided container failed to start and listen on the port defined provided by the PORT=8080 environment variable within the allocated timeout. This can happen when the container port is misconfigured or if the timeout is too short. The health check timeout can be extended. Logs for this revision might contain more information.

NodeJS firebase library version I am using:

"firebase": "^11.7.1",
"firebase-admin": "^13.3.0",
"firebase-functions": "^6.3.2",
"engines": {
"node": "20"
}
0 0 90
0 REPLIES 0
Top Solution Authors