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
{{ message }}
Repository navigation
gcloud._helpers._compute_engine_id should return a str (Python 3) #1625
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.
Activity
dhermes commentedon Mar 18, 2016
Thanks. This has come up before (I'll try to track down where). I wish there was an easy way to run system tests on GCE and GAE.
dhermes commentedon Mar 18, 2016
#1470 was when it came up. "Fixed" in #1505
dhermes commentedon Mar 18, 2016
@pcostell What version are you using? It seems like this should be all fixed in
datastore-v1beta3branchpcostell commentedon Mar 18, 2016
sorry I copied this from the Datastore issue tracker. @flunderpero, can you share what gcloud version you are using?
dhermes commentedon Mar 18, 2016
DERP. Sorry I didn't even notice that
flunderpero commentedon Mar 18, 2016
I'm using gcloud 0.11.0 installed from PyPi.
dhermes commentedon Mar 18, 2016
Thanks. Right now the datastore
Clientdoesn't use the project mix-in. I "imagined" that theClientin thedatastore-v1beta3branch did "the right thing", but that hasn't been updated either.Thanks for poking me into noticing this change was needed!
Allow bytes or string as project value in datastore clients.
chore(librarian): onboard to librarian (#1625)
chore(librarian): remove owlbot configs which was missed in #1625 (#1629
chore: revert the change of session for llm tests (#1625)