Title: PubSub client example: StatusCode.PERMISSION_DENIED · Issue #697 · GoogleCloudPlatform/python-docs-samples · GitHub
Open Graph Title: PubSub client example: StatusCode.PERMISSION_DENIED · Issue #697 · GoogleCloudPlatform/python-docs-samples
X Title: PubSub client example: StatusCode.PERMISSION_DENIED · Issue #697 · GoogleCloudPlatform/python-docs-samples
Description: In which file did you encounter the issue? https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/pubsub/cloud-client/publisher.py Did you change the file? If so, how? Nope. Describe the issue $ python publisher.py list T...
Open Graph Description: In which file did you encounter the issue? https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/pubsub/cloud-client/publisher.py Did you change the file? If so, how? Nope. Describ...
X Description: In which file did you encounter the issue? https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/pubsub/cloud-client/publisher.py Did you change the file? If so, how? Nope. Describ...
Opengraph URL: https://github.com/GoogleCloudPlatform/python-docs-samples/issues/697
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PubSub client example: StatusCode.PERMISSION_DENIED","articleBody":"## In which file did you encounter the issue?\r\nhttps://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/pubsub/cloud-client/publisher.py\r\n\r\n### Did you change the file? If so, how?\r\n\r\nNope.\r\n\r\n## Describe the issue\r\n\r\n```\r\n$ python publisher.py list\r\nTraceback (most recent call last):\r\n File \"publisher.py\", line 93, in \u003cmodule\u003e\r\n list_topics()\r\n File \"publisher.py\", line 33, in list_topics\r\n for topic in pubsub_client.list_topics():\r\n File \"/usr/local/lib/python2.7/dist-packages/google/cloud/iterator.py\", line 210, in _items_iter\r\n for page in self._page_iter(increment=False):\r\n File \"/usr/local/lib/python2.7/dist-packages/google/cloud/iterator.py\", line 239, in _page_iter\r\n page = self._next_page()\r\n File \"/usr/local/lib/python2.7/dist-packages/google/cloud/iterator.py\", line 437, in _next_page\r\n items = six.next(self._gax_page_iter)\r\n File \"/usr/local/lib/python2.7/dist-packages/google/gax/__init__.py\", line 435, in next\r\n return self.__next__()\r\n errors.create_error('RPC failed', cause=exception))\r\ngoogle.gax.errors.GaxError: GaxError(RPC failed, caused by \u003c_Rendezvous of RPC that terminated with (StatusCode.PERMISSION_DENIED, User not authorized to perform this action.)\u003e)\r\n```\r\nRunning the `pubsub.projects.topics.list` api from https://developers.google.com/apis-explorer workst just fine.\r\n\r\nI'm running this inside the Cloud Shell on a project with Cloud Pub/Sub API enabled and some topics set up. `gcloud auth list` shows my account, `cloud auth login` greatly discourages me to use it inside a Cloud Shell so I haven't tried refreshing my credentials. ","author":{"url":"https://github.com/bluecmd","@type":"Person","name":"bluecmd"},"datePublished":"2016-12-03T18:39:37.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/697/python-docs-samples/issues/697"}
| 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:de87b1f4-9bf7-66ed-a466-10661fe524f9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CA12:D3171:E8C743:134B63D:6A51BCA6 |
| html-safe-nonce | adcba1698647c77e599077809b244085e3b616edbed73783c4c113bf48e6fbeb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQTEyOkQzMTcxOkU4Qzc0MzoxMzRCNjNEOjZBNTFCQ0E2IiwidmlzaXRvcl9pZCI6IjQwMzAzMjE2MTc4NDY1MTY5MDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a33654b735dd35eae4d7015428c2f51c85469569e112b474149aded0aed5e3ba |
| hovercard-subject-tag | issue:193306262 |
| 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/GoogleCloudPlatform/python-docs-samples/697/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5e91f63c4327330b2080cf7d48b2e06cebf4dc796f39424fc0b93e122fc05215/GoogleCloudPlatform/python-docs-samples/issues/697 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5e91f63c4327330b2080cf7d48b2e06cebf4dc796f39424fc0b93e122fc05215/GoogleCloudPlatform/python-docs-samples/issues/697 |
| og:image:alt | In which file did you encounter the issue? https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/pubsub/cloud-client/publisher.py Did you change the file? If so, how? Nope. Describ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bluecmd |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/GoogleCloudPlatform/python-docs-samples git https://github.com/GoogleCloudPlatform/python-docs-samples.git |
| octolytics-dimension-user_id | 2810941 |
| octolytics-dimension-user_login | GoogleCloudPlatform |
| octolytics-dimension-repository_id | 35065876 |
| octolytics-dimension-repository_nwo | GoogleCloudPlatform/python-docs-samples |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 35065876 |
| octolytics-dimension-repository_network_root_nwo | GoogleCloudPlatform/python-docs-samples |
| 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 | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width