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
Functions deploy fails on firebase-tools version 13.15.3 but works in 13.15.2 #7575
[debug] [2024-08-21T13:09:58.665Z] TypeError: Cannot convert undefined or null to object
at Function.entries ()
at Object.want (C:\Users\thoma\AppData\Roaming\fnm\node-versions\v20.16.0\installation\node_modules\firebase-tools\lib\deploy\extensions\planner.js:120:28)
at prepareDynamicExtensions (C:\Users\thoma\AppData\Roaming\fnm\node-versions\v20.16.0\installation\node_modules\firebase-tools\lib\deploy\extensions\prepare.js:122:48)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async prepare (C:\Users\thoma\AppData\Roaming\fnm\node-versions\v20.16.0\installation\node_modules\firebase-tools\lib\deploy\functions\prepare.js:62:9)
at async chain (C:\Users\thoma\AppData\Roaming\fnm\node-versions\v20.16.0\installation\node_modules\firebase-tools\lib\deploy\index.js:40:9)
at async deploy (C:\Users\thoma\AppData\Roaming\fnm\node-versions\v20.16.0\installation\node_modules\firebase-tools\lib\deploy\index.js:97:5)
[error]
Reacted by ShadowBoxingSkills, Klaudas, jvddries, struijenID, Julio, joshkautz, Lure99, IshaiChannelImage, Geoffrey Bourne and Navdeep Singh Rathore
This issue does not have all the information required by the template. Looks like you forgot to fill out some sections. Please update the issue with more information.
Hey @Spitzbua, thanks for reporting this! I was able to reproduce the error you mentioned. Let me raise this to our engineering team so they can take a look. For those also encountering this, could you try downgrading to v13.15.2 to workaround the issue.
I am seeing this issue pop up in 2 different public forums. When deploying with --debug they are seeing:
[2024-08-21T17:09:37.182Z] <<< [apiv2][body] POST https://cloudresourcemanager.googleapis.com/v1/projects/FOOBAR:testIamPermissions {"permissions":["firebase.projects.get","firebaseextensions.instances.list"]}
[2024-08-21T17:09:37.237Z] TypeError: Cannot convert undefined or null to object
at Function.entries (<anonymous>)
at Object.want (C:\Users\FOOBAR\AppData\Roaming\npm\node_modules\firebase-tools\lib\deploy\extensions\planner.js:120:28)
at prepareDynamicExtensions (C:\Users\FOOBAR\AppData\Roaming\npm\node_modules\firebase-tools\lib\deploy\extensions\prepare.js:122:48)
.......
.......
@joehan Your fix has completely broken my project.
In CI (Github Actions) I used the command when deploying: firebase deploy -m "Autodeploy from GitHUB ($GITHUB_ACTOR)" --only functions --force
It has completely removed all extensions and their settings ( #7582 ). Probably such actions lead to the fact that I will be forced to abandon firebase in the future, because your work is very unstable.
@gregfenton I pay for Google services and I expect services of acceptable quality. In the concept of a service, I also include tools provided by Google or their subsidiaries such as Firebase. I understand mistakes when these mistakes do not lead to irreversible consequences. But today I had to spend several hours manually reinstalling and configuring all the deleted extensions. I also had to stop the project for a few hours while a decision was made to minimize the consequences.
The previous problem in 13.15.3, for example, did not lead to irreversible consequences and simply required a downgrade.
At the same time, the deployment of extensions from the documentation would have to occur with the commands firebase deploy --only extensionslink But it doesn't work.
Moreover, the description available in the console does not provide for deleting all extensions at once or installing them from the env file.
If you consider it appropriate for yourself to deploy a test environment only for testing firebase-tools and update your CI processes manually, then this is your personal business and your personal money.
Activity
google-oss-bot commentedon Aug 21, 2024
This issue does not have all the information required by the template. Looks like you forgot to fill out some sections. Please update the issue with more information.
aalej commentedon Aug 21, 2024
Hey @Spitzbua, thanks for reporting this! I was able to reproduce the error you mentioned. Let me raise this to our engineering team so they can take a look. For those also encountering this, could you try downgrading to v13.15.2 to workaround the issue.
OlivierLebra commentedon Aug 21, 2024
Another workaround is to add an empty
"extensions": []array field to yourfirebase.json.gregfenton commentedon Aug 21, 2024
I am seeing this issue pop up in 2 different public forums. When deploying with
--debugthey are seeing:dhamuace commentedon Aug 21, 2024
I am getting same issue in my end today.
dhamuace commentedon Aug 21, 2024
And guys after downgraded to v13.15.2 it finally works!!! Thanks for short workaround @aalej
meisolated commentedon Aug 21, 2024
I was also facing the same issue, but making a small tweak to the command made it work for me.

joehan commentedon Aug 21, 2024
Hey all, sorry for the inconvenience here. This should be fixed in 13.15.4, which will be available on npm shortly
gregfenton commentedon Aug 21, 2024
No need to be sorry. We've all been here and will be here a million times again.
See it as the opportunity to improve test automation that it is! 😁
siarheidudko commentedon Aug 22, 2024
@joehan Your fix has completely broken my project.
In CI (Github Actions) I used the command when deploying:
firebase deploy -m "Autodeploy from GitHUB ($GITHUB_ACTOR)" --only functions --forceIt has completely removed all extensions and their settings ( #7582 ). Probably such actions lead to the fact that I will be forced to abandon firebase in the future, because your work is very unstable.
gregfenton commentedon Aug 22, 2024
@siarheidudko In my opinion, that comment and flaying of blame is uncalled for.
Your system not having sufficient fail-safes, that takes "the latest and greatest" without safety checks or questions is not someone else's problem.
siarheidudko commentedon Aug 22, 2024
@gregfenton I pay for Google services and I expect services of acceptable quality. In the concept of a service, I also include tools provided by Google or their subsidiaries such as Firebase. I understand mistakes when these mistakes do not lead to irreversible consequences. But today I had to spend several hours manually reinstalling and configuring all the deleted extensions. I also had to stop the project for a few hours while a decision was made to minimize the consequences.
The previous problem in 13.15.3, for example, did not lead to irreversible consequences and simply required a downgrade.
At the same time, the deployment of extensions from the documentation would have to occur with the commands
firebase deploy --only extensionslink But it doesn't work.Moreover, the description available in the console does not provide for deleting all extensions at once or installing them from the env file.
If you consider it appropriate for yourself to deploy a test environment only for testing firebase-tools and update your CI processes manually, then this is your personal business and your personal money.