You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I stumbled upon this while deploying my app for the first time on GKE/GCE.
I had to explicitly specify project when creating a client: gcloud.datastore.Client(project="my-project"), otherwise I just got an gcloud.exceptions.ServiceUnavailable: 503 Backend Error.
First I thought the problem would be that autodetecting the project-id didn't work, but gcloud.datastore.Client(credentials=credentials, project=project) returns my project-id, be it as bytes instead of str.
I quickly verified that using bytes as a project-id does not work, i.e. gcloud.datastore.Client(project=b"my-project") resulted in that neat 503 Backend Error.
The text was updated successfully, but these errors were encountered:
I stumbled upon this while deploying my app for the first time on GKE/GCE.
I had to explicitly specify
project
when creating a client:gcloud.datastore.Client(project="my-project")
, otherwise I just got angcloud.exceptions.ServiceUnavailable: 503 Backend Error
.First I thought the problem would be that autodetecting the project-id didn't work, but
gcloud.datastore.Client(credentials=credentials, project=project)
returns my project-id, be it asbytes
instead ofstr
.I quickly verified that using
bytes
as a project-id does not work, i.e.gcloud.datastore.Client(project=b"my-project")
resulted in that neat503 Backend Error
.The text was updated successfully, but these errors were encountered: