-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
Needs: Author FeedbackIssues awaiting author feedbackIssues awaiting author feedbackapi: functionstype: bug
Description
[REQUIRED] Environment info
firebase-tools: 11.3.0
Platform: macOS
[REQUIRED] Test case
A firebase project with gen2 cloud functions and local version of firebase-tools === 11.3.0. Firebase deploy fails.
[REQUIRED] Steps to reproduce
- Install the latest version of Firebase CLI:
npm install -g [email protected] - Create a firebase project:
firebase init - Add a gen2 cloud function
- Run
firebase deploy
[REQUIRED] Expected behavior
Firebase deploy success.
[REQUIRED] Actual behavior
Deploy fails with following error: Error: Failed to fetch Run service undefined.
If we run firebase deploy --debug, we get:
[2022-12-14T15:01:42.800Z] FirebaseError: Failed to make request: Cannot read properties of undefined (reading 'startsWith')
at Client.request (/Users/user/.cache/firebase/tools/lib/node_modules/firebase-tools/lib/apiv2.js:111:19)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Object.getService (/Users/user/.cache/firebase/tools/lib/node_modules/firebase-tools/lib/gcp/run.js:17:26)
at async Promise.all (index 0)
at async loadExistingBackend (/Users/user/.cache/firebase/tools/lib/node_modules/firebase-tools/lib/deploy/functions/backend.js:197:28)
at async Object.existingBackend (/Users/user/.cache/firebase/tools/lib/node_modules/firebase-tools/lib/deploy/functions/backend.js:173:9)
at async prepare (/Users/user/.cache/firebase/tools/lib/node_modules/firebase-tools/lib/deploy/functions/prepare.js:110:115)
at async chain (/Users/user/.cache/firebase/tools/lib/node_modules/firebase-tools/lib/deploy/index.js:33:9)
at async deploy (/Users/user/.cache/firebase/tools/lib/node_modules/firebase-tools/lib/deploy/index.js:68:5)
Temporary Fix:
In order to fix the error, I had to remove Firebase tools (v 11.3.0) from my system and install Firebase tools v11.18.0. Deploy succeeds.
itizawa and Corchoneitor
Metadata
Metadata
Assignees
Labels
Needs: Author FeedbackIssues awaiting author feedbackIssues awaiting author feedbackapi: functionstype: bug