Title: Service account throws 503 Backend Error when executing gcloud.datastore.Query() · Issue #869 · googleapis/google-cloud-python · GitHub
Open Graph Title: Service account throws 503 Backend Error when executing gcloud.datastore.Query() · Issue #869 · googleapis/google-cloud-python
X Title: Service account throws 503 Backend Error when executing gcloud.datastore.Query() · Issue #869 · googleapis/google-cloud-python
Description: See below the python script which throws the 50 error. The credentials being used are those of a GCP service account. $ python Python 2.7.8 (default, Apr 15 2015, 09:26:43) [GCC 4.9.2 20150212 (Red Hat 4.9.2-6)] on linux2 Type "help", "c...
Open Graph Description: See below the python script which throws the 50 error. The credentials being used are those of a GCP service account. $ python Python 2.7.8 (default, Apr 15 2015, 09:26:43) [GCC 4.9.2 20150212 (Red...
X Description: See below the python script which throws the 50 error. The credentials being used are those of a GCP service account. $ python Python 2.7.8 (default, Apr 15 2015, 09:26:43) [GCC 4.9.2 20150212 (Red...
Opengraph URL: https://github.com/googleapis/google-cloud-python/issues/869
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Service account throws 503 Backend Error when executing gcloud.datastore.Query()","articleBody":"See below the python script which throws the 50 error. The credentials being used are those of a GCP service account.\n\n```\n$ python\nPython 2.7.8 (default, Apr 15 2015, 09:26:43) \n[GCC 4.9.2 20150212 (Red Hat 4.9.2-6)] on linux2\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\n\u003e\u003e\u003e from gcloud import datastore\n\u003e\u003e\u003e datastore.set_default_dataset_id('tmp')\n\u003e\u003e\u003e datastore_conn = datastore.get_connection()\n\u003e\u003e\u003e datastore.set_default_connection(datastore_conn)\n\u003e\u003e\u003e q=datastore.Query('foo')\n\u003e\u003e\u003e print list(q.fetch())\nTraceback (most recent call last):\n File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\n File \"/usr/lib/python2.7/site-packages/gcloud/datastore/query.py\", line 421, in __iter__\n self.next_page()\n File \"/usr/lib/python2.7/site-packages/gcloud/datastore/query.py\", line 388, in next_page\n transaction_id=transaction and transaction.id,\n File \"/usr/lib/python2.7/site-packages/gcloud/datastore/connection.py\", line 257, in run_query\n datastore_pb.RunQueryResponse)\n File \"/usr/lib/python2.7/site-packages/gcloud/datastore/connection.py\", line 108, in _rpc\n data=request_pb.SerializeToString())\n File \"/usr/lib/python2.7/site-packages/gcloud/datastore/connection.py\", line 85, in _request\n raise make_exception(headers, content, use_json=False)\ngcloud.exceptions.ServiceUnavailable: 503 Backend Error\n```\n\nThese .bashrc environment variables have been set, and last is set to use the service account:\n\n```\nCLOUDSDK_CONFIG\nCLOUDSDK_PYTHON\nGOOGLE_APPLICATION_CREDENTIALS\n```\n\nAnd, $ gcloud auth activate-service-account has been run, to make the service account the 'active' credentials.\n\nThe Cloud Datastore API is enabled on the GCP project.\n\nAlso, 'gcloud config set project' has been run.\n\nAny suggestions on how to correct this (credentials configuration) mistake are appreciated.\n","author":{"url":"https://github.com/charlesbclifford","@type":"Person","name":"charlesbclifford"},"datePublished":"2015-05-10T17:02:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/869/google-cloud-python/issues/869"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a1d4a1b7-fcbb-0059-a529-261ac4f206ec |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 910E:14F965:3EC668:541690:6A4DA136 |
| html-safe-nonce | d70450c2ec4b19ccafd7e6f1f0432d7c42fc37e5b3d92f600bb30d70bf9dadd9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTBFOjE0Rjk2NTozRUM2Njg6NTQxNjkwOjZBNERBMTM2IiwidmlzaXRvcl9pZCI6IjMyNDY1ODI0ODgyNTI2NTM4NzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f1e55b0196bc1d0637d022ada8f9615d2cddb0b00dc2b6f7362819f7b74052b6 |
| hovercard-subject-tag | issue:74957885 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/google-cloud-python/869/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1e2573623ef94b91dbcc16425738465e481cd0e0604ad3f2c6c07f4a30f0c67b/googleapis/google-cloud-python/issues/869 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1e2573623ef94b91dbcc16425738465e481cd0e0604ad3f2c6c07f4a30f0c67b/googleapis/google-cloud-python/issues/869 |
| og:image:alt | See below the python script which throws the 50 error. The credentials being used are those of a GCP service account. $ python Python 2.7.8 (default, Apr 15 2015, 09:26:43) [GCC 4.9.2 20150212 (Red... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | charlesbclifford |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/google-cloud-python git https://github.com/googleapis/google-cloud-python.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 16316451 |
| octolytics-dimension-repository_nwo | googleapis/google-cloud-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 16316451 |
| octolytics-dimension-repository_network_root_nwo | googleapis/google-cloud-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7f13faa65cccc9b729d674da83335d5dcfdfd193 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width