-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gcloud._helpers._compute_engine_id should return a str (Python 3) #1625
Comments
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. |
@pcostell What version are you using? It seems like this should be all fixed in |
sorry I copied this from the Datastore issue tracker. @flunderpero, can you share what gcloud version you are using? |
DERP. Sorry I didn't even notice that |
I'm using gcloud 0.11.0 installed from PyPi. |
Thanks. Right now the datastore Thanks for poking me into noticing this change was needed! |
Fixes googleapis#1625. Was "fixed" in googleapis#1505 but missed datastore.
From googleapis/google-cloud-datastore#92:
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: