Title: list_subscriptions does not work properly · Issue #1485 · googleapis/google-cloud-python · GitHub
Open Graph Title: list_subscriptions does not work properly · Issue #1485 · googleapis/google-cloud-python
X Title: list_subscriptions does not work properly · Issue #1485 · googleapis/google-cloud-python
Description: list_subscriptions() works but list_subscriptions(topic_name = 'topic_name') does not work properly >>> from gcloud import pubsub >>> client = pubsub.Client(project = 'my_project') >>> client.list_subscriptions(topic_name = 'my_topic') T...
Open Graph Description: list_subscriptions() works but list_subscriptions(topic_name = 'topic_name') does not work properly >>> from gcloud import pubsub >>> client = pubsub.Client(project = 'my_project') >>> client.list_...
X Description: list_subscriptions() works but list_subscriptions(topic_name = 'topic_name') does not work properly >>> from gcloud import pubsub >>> client = pubsub.Client(project = '...
Opengraph URL: https://github.com/googleapis/google-cloud-python/issues/1485
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"list_subscriptions does not work properly","articleBody":"`list_subscriptions()` works but `list_subscriptions(topic_name = 'topic_name')` does not work properly\n\n``` python\n\u003e\u003e\u003e from gcloud import pubsub\n\u003e\u003e\u003e client = pubsub.Client(project = 'my_project')\n\u003e\u003e\u003e client.list_subscriptions(topic_name = 'my_topic')\nTraceback (most recent call last):\n File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\n File \"/usr/local/lib/python2.7/dist-packages/gcloud/pubsub/client.py\", line 131, in list_subscriptions\n for resource in resp['subscriptions']]\n File \"/usr/local/lib/python2.7/dist-packages/gcloud/pubsub/subscription.py\", line 68, in from_api_repr\n topic_path = resource['topic']\nTypeError: string indices must be integers\n```\n","author":{"url":"https://github.com/bitcpf","@type":"Person","name":"bitcpf"},"datePublished":"2016-02-17T18:24:40.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":12},"url":"https://github.com/1485/google-cloud-python/issues/1485"}
| 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:93d9adbe-386f-983d-c809-cd68703ab1e7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BCF8:38D161:16EAEB:1E4131:6A4D85EC |
| html-safe-nonce | 78695f105d08538bff5110c785b52050488edf8e30058ee825da003ff0b1c6ea |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQ0Y4OjM4RDE2MToxNkVBRUI6MUU0MTMxOjZBNEQ4NUVDIiwidmlzaXRvcl9pZCI6Ijc0NDU4NjUyMTAwNDcyMDI3OTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6c92cd22edc655a01ea629340e0b83ac83b799d2992aba85b866ddacd62a0f20 |
| hovercard-subject-tag | issue:134359874 |
| 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/1485/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ab80d5dad3a026f0d9b5ccd5ad822cef71b4d03ed2e16668cbcd4ebf83144dcb/googleapis/google-cloud-python/issues/1485 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ab80d5dad3a026f0d9b5ccd5ad822cef71b4d03ed2e16668cbcd4ebf83144dcb/googleapis/google-cloud-python/issues/1485 |
| og:image:alt | list_subscriptions() works but list_subscriptions(topic_name = 'topic_name') does not work properly >>> from gcloud import pubsub >>> client = pubsub.Client(project = 'my_project') >>> client.list_... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bitcpf |
| hostname | github.com |
| expected-hostname | github.com |
| None | c6bf61c909482ec3072ef5d7a5a28f2a9d214788c9a44793eca1960048cb05ae |
| 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 | 6702a58b419a792226bd21ef0fb1bcb318bbcaa3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width