-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
[REQUIRED] Environment info
14.18.0
firebase-tools:
linux fedora
Platform:
[REQUIRED] Test case
deploy firebase functions using firebase CLI
[REQUIRED] Steps to reproduce
firebase deploy --only functions
[REQUIRED] Expected behavior
should deploy
[REQUIRED] Actual behavior
(I replaced personal info with dots)
[2025-10-09T09:04:05.190Z] Object "" in "firebase.json" has unknown property: {"additionalProperty":"flutter"}
[2025-10-09T09:04:05.194Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
[2025-10-09T09:04:05.194Z] > authorizing via signed-in user (...........)
[2025-10-09T09:04:05.194Z] [iam] checking project ....... for permissions ["cloudfunctions.functions.create","cloudfunctions.functions.delete","cloudfunctions.functions.get","cloudfunctions.functions.list","cloudfunctions.functions.update","cloudfunctions.operations.get","firebase.projects.get"]
[2025-10-09T09:04:05.195Z] Checked if tokens are valid: true, expires at: 1760003653756
[2025-10-09T09:04:05.195Z] Checked if tokens are valid: true, expires at: 1760003653756
[2025-10-09T09:04:05.196Z] >>> [apiv2][query] POST https://cloudresourcemanager.googleapis.com/v1/projects/.......:testIamPermissions [none]
[2025-10-09T09:04:05.196Z] >>> [apiv2][(partial)header] POST https://cloudresourcemanager.googleapis.com/v1/projects/.......:testIamPermissions x-goog-quota-user=projects/.......
[2025-10-09T09:04:05.196Z] >>> [apiv2][body] POST https://cloudresourcemanager.googleapis.com/v1/projects/.......:testIamPermissions {"permissions":["cloudfunctions.functions.create","cloudfunctions.functions.delete","cloudfunctions.functions.get","cloudfunctions.functions.list","cloudfunctions.functions.update","cloudfunctions.operations.get","firebase.projects.get"]}
[2025-10-09T09:04:05.874Z] <<< [apiv2][status] POST https://cloudresourcemanager.googleapis.com/v1/projects/.......:testIamPermissions 200
[2025-10-09T09:04:05.874Z] <<< [apiv2][body] POST https://cloudresourcemanager.googleapis.com/v1/projects/.......:testIamPermissions {"permissions":["cloudfunctions.functions.create","cloudfunctions.functions.delete","cloudfunctions.functions.get","cloudfunctions.functions.list","cloudfunctions.functions.update","cloudfunctions.operations.get","firebase.projects.get"]}
[2025-10-09T09:04:05.875Z] Checked if tokens are valid: true, expires at: 1760003653756
[2025-10-09T09:04:05.875Z] Checked if tokens are valid: true, expires at: 1760003653756
[2025-10-09T09:04:05.875Z] >>> [apiv2][query] POST https://iam.googleapis.com/v1/projects/......./serviceAccounts/.......@appspot.gserviceaccount.com:testIamPermissions [none]
[2025-10-09T09:04:05.875Z] >>> [apiv2][body] POST https://iam.googleapis.com/v1/projects/......./serviceAccounts/.......@appspot.gserviceaccount.com:testIamPermissions {"permissions":["iam.serviceAccounts.actAs"]}
[2025-10-09T09:04:06.662Z] <<< [apiv2][status] POST https://iam.googleapis.com/v1/projects/......./serviceAccounts/.......@appspot.gserviceaccount.com:testIamPermissions 404
[2025-10-09T09:04:06.663Z] <<< [apiv2][body] POST https://iam.googleapis.com/v1/projects/......./serviceAccounts/.......@appspot.gserviceaccount.com:testIamPermissions {"error":{"code":404,"message":"Unknown service account","status":"NOT_FOUND"}}
[2025-10-09T09:04:06.663Z] [functions] service account IAM check errored, deploy may fail: Request to https://iam.googleapis.com/v1/projects/......./serviceAccounts/.......@appspot.gserviceaccount.com:testIamPermissions had HTTP Error: 404, Unknown service account {"name":"FirebaseError","children":[],"context":{"body":{"error":{"code":404,"message":"Unknown service account","status":"NOT_FOUND"}},"response":{"statusCode":404}},"exit":1,"message":"Request to https://iam.googleapis.com/v1/projects/......./serviceAccounts/.......@appspot.gserviceaccount.com:testIamPermissions had HTTP Error: 404, Unknown service account","status":404}
=== Deploying to '.......'...
i deploying functions
Running command: npm --prefix "$RESOURCE_DIR" run lint
lint
eslint .
/bin/sh: -- : option non valable
Utilisation : /bin/sh [option longue GNU] [option] ...
/bin/sh [option longue GNU] [option] fichier-script ...
Options longues GNU :
--debug
--debugger
--dump-po-strings
--dump-strings
--help
--init-file
--login
--noediting
--noprofile
--norc
--posix
--pretty-print
--rcfile
--rpm-requires
--restricted
--verbose
--version
Options du shell :
-ilrsD ou -c commande ou -O shopt_option (invocation seulement)
-abefhkmnptuvxBCEHPT ou -o option
Error: functions predeploy error: Command terminated with non-zero exit code 2