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.
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.
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.
Try updating firebase-tools to latest version. That fixed this issue for me.
npm install -g firebase-tools
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With