Oct 10, 2018

[HDGEM] How to fix Google Cloud locations error

If you encounter error:

ERROR: (gcloud.beta.functions.deploy) value for field [locationsId] for in collection [cloudfunctions.projects.locations] is required but was not provided


ERROR: (gcloud.beta.functions.deploy) ResponseError: status=[400], code=[Bad Request], message=[The request has errorsProblems:region us-east1 is not supported]

You can set your region to 

gcloud config set functions/region us-central1

or you can add --region=us-central1 to your command:

$ gcloud beta functions deploy helloWorld --stage-bucket gs://hdgem-function --trigger-topic hello_world

Posted By Blogger to HDGEM at 3/24/2017 12:10:00 PM