serverless-google-cloudfunctions icon indicating copy to clipboard operation
serverless-google-cloudfunctions copied to clipboard

Error: Deployment failed: RESOURCE_ERROR - 400

Open duducp opened this issue 5 years ago • 3 comments

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 '[email protected]' 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?

duducp avatar Jan 17 '20 19:01 duducp

I found the solution. Check this thread

iliapir avatar Feb 10 '20 16:02 iliapir

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

AlbinBlent avatar Feb 15 '20 15:02 AlbinBlent

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?

damiana avatar Mar 26 '20 19:03 damiana