serverless / serverless-google-cloudfunctions

Serverless Google Cloud Functions Plugin – Adds Google Cloud Functions support to the Serverless Framework
https://www.serverless.com
MIT License
271 stars 127 forks source link

Error: Deployment failed: RESOURCE_ERROR - 400 #193

Open duducp opened 4 years ago

duducp commented 4 years ago

Hello,

I'm getting this error when deploying my application:

Error: Deployment failed: RESOURCE_ERROR
     {"ResourceType":"cloudfunctions.v1beta2.function","ResourceErrorCode":"400","ResourceErrorMessage":{"code":400,"message":"Default service account 'functions-265412@appspot.gserviceaccount.com' doesn't exist. Please recreate this account (for example by disabling and enabling the Cloud Functions API), or specify a different account.","status":"FAILED_PRECONDITION","details":[],"statusMessage":"Bad Request","requestPath":"https://cloudfunctions.googleapis.com/v1beta2/projects/functions-265412/locations/us-central1/functions","httpMethod":"POST"}}

I don't understand the reason for the error, because on my G Cloud the Cloud Functions Api is active and my credential is allowed to access.

Did someone also receive this error and could help me solve it?

iliapir commented 4 years ago

I found the solution. Check this thread

AlbinBlent commented 4 years ago

I had the same problem. Solved it by creating an app engine service in the gcp console.

damiana commented 4 years ago

I have the same problem. It already includes the runtime tag in the functions, I updated the serverless plugin version to "^ 2.4.2" but I can't execute it.

Error image

serverless.yml image

How do I solve it?