Open jeffgaynor opened 3 weeks ago
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
I got an error "firebase cloud error Failed to load function definition from source" when I upgraded from 5.0.1 to 5.1.0
Same issue here.
[debug] [2024-08-26T16:42:30.433Z] TypeError: Cannot convert undefined or null to object
at Function.entries (<anonymous>)
at Object.want (/Users/---/Library/pnpm/global/5/.pnpm/firebase-tools@13.15.3_encoding@0.1.13/node_modules/firebase-tools/lib/deploy/extensions/planner.js:120:28)
I am seeing an issue when deploying via CI probably due to a similar/related issue with a change made in 5.1.0
✔ extensions: required API firebaseextensions.googleapis.com is enabled
i extensions: ensuring required API firebaseextensions.googleapis.com is enabled...
✔ extensions: required API firebaseextensions.googleapis.com is enabled
Error: HTTP Error: 403, The caller does not have permission
I was able to resolve this by updating to the latest version of firebase-tools (13.16.0)
@jeffgaynor @rendomnet @christopheramason Were you able to solve this as well by upgrading the firebase-tools package?
Related issues
n/a
[REQUIRED] Version info
node: v20.16.0
firebase-functions: ^5.1.0
firebase-tools: ^13.15.3
firebase-admin: "^12.3.1"
[REQUIRED] Test case
Run
firebase deploy --only functions --force
[REQUIRED] Steps to reproduce
Upgrade Firebase Functions to latest version: 5.1.0
[REQUIRED] Expected behavior
Functions deploy successfully
[REQUIRED] Actual behavior
Functions fail to deploy
Were you able to successfully deploy your functions?
Initial output was:
Running deploy with debugging shows this detail:
Downgrading identical code to v5.0.1 works. So it's definitely an issue with v5.1.0, which included this: https://github.com/firebase/firebase-functions/pull/1590 related to extensions.