Title: subscriber.py receive requires an args.timeout but it is missing from positional or optional arguments · Issue #2633 · GoogleCloudPlatform/python-docs-samples · GitHub
Open Graph Title: subscriber.py receive requires an args.timeout but it is missing from positional or optional arguments · Issue #2633 · GoogleCloudPlatform/python-docs-samples
X Title: subscriber.py receive requires an args.timeout but it is missing from positional or optional arguments · Issue #2633 · GoogleCloudPlatform/python-docs-samples
Description: In which file did you encounter the issue? subscriber.py GoogleCloudPlatform/python-docs-samples/pubsub/cloud-client Did you change the file? If so, how? No Describe the issue I was following the directions here [1] to receive from a sub...
Open Graph Description: In which file did you encounter the issue? subscriber.py GoogleCloudPlatform/python-docs-samples/pubsub/cloud-client Did you change the file? If so, how? No Describe the issue I was following the d...
X Description: In which file did you encounter the issue? subscriber.py GoogleCloudPlatform/python-docs-samples/pubsub/cloud-client Did you change the file? If so, how? No Describe the issue I was following the d...
Opengraph URL: https://github.com/GoogleCloudPlatform/python-docs-samples/issues/2633
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"subscriber.py receive requires an args.timeout but it is missing from positional or optional arguments","articleBody":"## In which file did you encounter the issue?\r\nsubscriber.py\r\n\u003c!-- Please provide the full path to the file, to avoid ambiguity --\u003e\r\nGoogleCloudPlatform/python-docs-samples/pubsub/cloud-client\r\n\r\n### Did you change the file? If so, how?\r\nNo\r\n\u003c!-- A diff would be helpful; otherwise, a description --\u003e\r\n\r\n## Describe the issue\r\nI was following the directions here [1] to receive from a subscription I created in the emulator and it fails saying it has no args.timeout. I see no way to provide this or any code that would parse this even if provided.\r\n\r\n[1] https://cloud.google.com/pubsub/docs/emulator\r\n\u003c!-- Please be specific. Copying and pasting your invocation and the entire\r\noutput is often helpful. --\u003e\r\n\r\npython subscriber.py my-project-id receive my-sub\r\nTraceback (most recent call last):\r\n File \"subscriber.py\", line 541, in \u003cmodule\u003e\r\n receive_messages(args.project_id, args.subscription_name, args.timeout)\r\nAttributeError: 'Namespace' object has no attribute 'timeout'\r\n\r\npython subscriber.py my-project-id receive my-sub timeout=5\r\nusage: subscriber.py [-h]\r\n project_id\r\n {list_in_topic,list_in_project,create,create-push,delete,update,receive,receive-custom-attributes,receive-flow-control,receive-synchronously,receive-synchronously-with-lease,listen_for_errors}\r\n ...\r\nsubscriber.py: error: unrecognized arguments: timeout=5","author":{"url":"https://github.com/botscholar-scott","@type":"Person","name":"botscholar-scott"},"datePublished":"2019-12-17T22:44:22.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/2633/python-docs-samples/issues/2633"}
| 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:28de7768-fa83-4ce1-df06-7f9e4751e953 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ECEC:DA997:22947A:2E2EE3:6A4D593C |
| html-safe-nonce | bb0984f3bfd8f0ee0388d508cf63a5e85e4b1396a64215efea9688e05bd55c9a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQ0VDOkRBOTk3OjIyOTQ3QToyRTJFRTM6NkE0RDU5M0MiLCJ2aXNpdG9yX2lkIjoiNDgyOTQ5MDAwOTQyODgxMDA0NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1d53d747b3e619a7cba60ceeb9028c2b6e5ef66bdff6f0f44429c3826aff1ae1 |
| hovercard-subject-tag | issue:539351018 |
| 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/2633/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3b3357a7cad3ce7f544cdd95c440e8a869d4aaff46f09d0a7df037986778d122/GoogleCloudPlatform/python-docs-samples/issues/2633 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3b3357a7cad3ce7f544cdd95c440e8a869d4aaff46f09d0a7df037986778d122/GoogleCloudPlatform/python-docs-samples/issues/2633 |
| og:image:alt | In which file did you encounter the issue? subscriber.py GoogleCloudPlatform/python-docs-samples/pubsub/cloud-client Did you change the file? If so, how? No Describe the issue I was following the d... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | botscholar-scott |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2a1443ff9733a3016431263ea73c93d8fe00c195eb4a7670ac30e7848f045441 |
| 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 | f3bdd3157ea1f0fd738d408eceeead721acf1dc3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width