Firebase Cloud Functions Deployment Error "Could not find image for function..."

2,890 views
Skip to first unread message

Mustafa Ekim

unread,
Jul 7, 2021, 5:09:17 AM7/7/21
to Firebase Google Group
Hi,

Today I started to get a bizarre error when I try to deploy firebase-cloud-functions. When I debug the deployment, I see the error below:

"Could not find image for function projects/zetform-63ea7/locations/us-central1/functions/muratserver"

Interestingly, I am getting this error for all the functions that I've, even though I am tryingh to deploy only 1 function.

Does anybody know what this is, and what I should do to proceed?



--
  • Deployment command I execute: firebase deploy --only "functions:blackhole" --debug

Jesús Franco

unread,
Dec 28, 2021, 5:03:16 PM12/28/21
to Firebase Google Group
Hello, this is my first contribution to the list, so I hope it is useful!

I've found on stackoverflow an useful clue:
https://stackoverflow.com/questions/70027316/firebase-function-failing-to-deploy

In my case, the package-lock.json was corrupted because:
1. a contributor switched 2 times the lockfileVersion from version 2 to 1 and then again from 1 to 2
2. they was using a deprecated package (crypto) that is not required anymore because it is integrated in Node.js core already.

So, I checked out the package.json and package-lock.json from a previous deployment, and then rebuilt and deployed again the functions.

Everything works fine now.

Best regards and Happy New Year!

Jesus Franco
Levo.mx

Reply all
Reply to author
Forward
0 new messages