Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase Cloud Functions deploy error

I'm trying to deploy my project from firebase CLI but there is an issue with my functions. This is strange because I had no issues with it four weeks ago. I haven't changed any of my firebase cloud function settings. When I try to run
firebase deploy or
firebase deploy --only functions .

I get this same error:
There was an issue deploying your functions. Verify that your project has a Google App Engine instance setup at https://console.cloud.google.com/appengine and try again. If this issue persists, please contact support.

Error: HTTP Error: 500, Internal error encountered.


My cloud functions worked fine before without having to set up a Google App Engine and I can't seem to find anything mentioning the need for a Google App Engine in the Docs.

like image 668
mnsupreme Avatar asked Jan 08 '18 18:01

mnsupreme


People also ask

Why does cloud deployment fail?

Cloud Functions deployment can fail if the entry point to your code, that is, the exported function name, is not specified correctly. Your source code must contain an entry point function that has been correctly specified in your deployment, either via Cloud console or Cloud SDK.

How do you deploy a cloud function?

In the Source code field, select ZIP from Cloud Storage. In the Cloud Storage location field, click Browse to select a ZIP file from Cloud Storage. Your function source files must be located at the root of the ZIP file - see Source directory structure. Click Deploy.


Video Answer


2 Answers

Try updating firebase-tools to latest version. That fixed this issue for me.

npm install -g firebase-tools
like image 161
Praveen N H Avatar answered Oct 08 '22 23:10

Praveen N H


I did the following which resolved the issue for me

npm i -g firebase-tools

Visited the URL https://console.cloud.google.com/appengine because that was in the response

like image 44
Ankit Jain Avatar answered Oct 09 '22 00:10

Ankit Jain