Hi I am upgrading cloud function from first generation to the second generation; I removed functions.config() for switching to paramaterized configuration, during the deploy the cli ask me to set a parameter, then it creates the env file relatedd to my project and stops there for an unexpected error: this is part of the log:
[debug] [2024-08-12T15:43:34.932Z] ----------------------------------------------------------------------
[debug] [2024-08-12T15:43:34.934Z] Command: /home/giuseppe/.nvm/versions/node/v20.15.1/bin/node /home/giuseppe/.nvm/versions/node/v20.15.1/bin/firebase deploy –only functions
[debug] [2024-08-12T15:43:34.934Z] CLI Version: 13.15.1
[debug] [2024-08-12T15:43:34.934Z] Platform: linux
[debug] [2024-08-12T15:43:34.934Z] Node Version: v20.15.1
[debug] [2024-08-12T15:43:34.935Z] Time: Mon Aug 12 2024 17:43:34 GMT+0200 (Ora legale dell’Europa centrale)
[debug] [2024-08-12T15:43:34.935Z] ———————————————————————-
[debug]
[debug] [2024-08-12T15:43:34.985Z] Object “.hosting” in “firebase.json” has unknown property: {“additionalProperty”:”rewrites.enabled”}
[debug] [2024-08-12T15:43:34.985Z] Field “.hosting” in “firebase.json” is possibly invalid: should be array
[debug] [2024-08-12T15:43:34.985Z] Field “.hosting” in “firebase.json” is possibly invalid: should match some schema in anyOf
[debug] [2024-08-12T15:43:34.988Z] > 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”]
[debug] [2024-08-12T15:43:34.989Z] > authorizing via signed-in user ([email protected])
[debug] [2024-08-12T15:43:34.989Z] [iam] checking project digitalaid-61011 for permissions [“cloudfunctions.functions.create”,”cloudfunctions.functions.delete”,”cloudfunctions.functions.get”,”cloudfunctions.functions.list”,”cloudfunctions.functions.update”,”cloudfunctions.operations.get”,”firebase.projects.get”]
[debug] [2024-08-12T15:43:34.990Z] >>> [apiv2][query] POST https://cloudresourcemanager.googleapis.com/v1/projects/digitalaid-61011:testIamPermissions [none]
I was able to set the secrets, but not the normal parameters, the cli created an .env file that is not touched