7
votes

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.

6
Please open a ticket with Firebase support. Folks on Stack Overflow are unlikely going to be able to diagnose the trouble for you. firebase.google.com/support/contact/troubleshootingDoug Stevenson
try it again and hope it works :pPeter Haddad

6 Answers

4
votes

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

3
votes

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

npm install -g firebase-tools
2
votes

Check the Google Cloud Status Dashboard if there are service interruptions for the day that your system encountered the issue.

https://status.cloud.google.com/

2
votes

For me it was an issue with the cloud resource location.

So just add firestore to your project and choose a location (i.e. europe-west).

Explanation:

After firebase init I got an error:

Error: Cloud resource location is not set for this project but the operation you are attempting to perform in Cloud Firestore requires it. Please see this documentation for more details: https://firebase.google.com/docs/projects/locations

So go to https://console.firebase.google.com/project, choose your project, and click on database and add firestore (or real time database if you prefer). That will also allow your functions to be uploaded.

1
votes

If your functions use the Cloud Datastore then yes, you need to create an App Engine project (you don't actually need to deploy a GAE app, tho). From Dependency on App Engine application:

If you are using a Google Cloud library to access Cloud Datastore, your Cloud project requires an active App Engine application. Open the App Engine dashboard and confirm your Cloud project has an active App Engine app. Create an App Engine app if needed. The app must not be disabled.

1
votes

If your functions use the Cloud Datastore, You need to create a Cloud Firestore Database.

Go to the Firebase dashboard -> Database then create new database.