You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Failed to deploy with serviceAccount as StringParam defined in .env file #6365
...
⚠ functions: HTTP Error: 400, {{ params.SERVICE_ACCOUNT }} should be a valid email or unique id.
⚠ functions: failed to update function projects/***/locations/***/functions/sayHello
Failed to update function projects/***/locations/***/functions/sayHello
...
for workaround.js, the output:
...
i functions: Loading and analyzing source code for codebase default to determine what to deploy
Serving at port 8079
{"severity":"WARNING","message":"params.SERVICE_ACCOUNT.value() invoked during function deployment, instead of during runtime."}
{"severity":"WARNING","message":"This is usually a mistake. In configs, use Params directly without calling .value()."}
{"severity":"WARNING","message":"example: { memory: memoryParam } not { memory: memoryParam.value() }"}
...
workaround deploys sucessfully, but its suggestions (without .value()) fails, as shown in index.js
On error, hard-coded values are printed out as is, while StringParam is shown as {{ params.SERVICE_ACCOUNT }}, suggesting the CLI may not have evaluated the Param as a string before validating and using the value.
actually the workaround does not work. It just used the default Compute Engine service account again.
currently hard-coding it in, but it is not ideal for working the git and .gitignore
Hi @ZakarY2HM6f thanks for raising this, it looks like we don't treat service accounts as params in the firebase CLI. I made a fix for that in #6389 and we'll try to merge that in as soon as possible. Thanks!
Activity
ZakarY2HM6f commentedon Sep 16, 2023
actually the workaround does not work. It just used the default Compute Engine service account again.
currently hard-coding it in, but it is not ideal for working the git and .gitignore
colerogers commentedon Sep 21, 2023
Hi @ZakarY2HM6f thanks for raising this, it looks like we don't treat service accounts as params in the firebase CLI. I made a fix for that in #6389 and we'll try to merge that in as soon as possible. Thanks!
artberri commentedon Apr 4, 2024
@colerogers it is happening again to me in version
13.6.1. Could there be a regression?