Title: Observed non-terminating stream error 500 Received RST_STREAM with error code 2 · Issue #504 · googleapis/python-pubsub · GitHub
Open Graph Title: Observed non-terminating stream error 500 Received RST_STREAM with error code 2 · Issue #504 · googleapis/python-pubsub
X Title: Observed non-terminating stream error 500 Received RST_STREAM with error code 2 · Issue #504 · googleapis/python-pubsub
Description: Hi I am using google pubsub service with flow control mechanism. I get this error very often after processing few messages. INFO 2021-09-22 12:56:13,932 google.cloud.pubsub_v1.subscriber._protocol.streaming_pull_manager _should_terminate...
Open Graph Description: Hi I am using google pubsub service with flow control mechanism. I get this error very often after processing few messages. INFO 2021-09-22 12:56:13,932 google.cloud.pubsub_v1.subscriber._protocol....
X Description: Hi I am using google pubsub service with flow control mechanism. I get this error very often after processing few messages. INFO 2021-09-22 12:56:13,932 google.cloud.pubsub_v1.subscriber._protocol....
Opengraph URL: https://github.com/googleapis/python-pubsub/issues/504
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Observed non-terminating stream error 500 Received RST_STREAM with error code 2","articleBody":"Hi\r\n\r\nI am using google pubsub service with flow control mechanism. I get this error very often after processing few messages.\r\n\r\n**INFO 2021-09-22 12:56:13,932 google.cloud.pubsub_v1.subscriber._protocol.streaming_pull_manager _should_terminate 685 : Observed non-terminating stream error 503 The service was unable to fulfill your request. Please try again. [code=8a75]\r\nINFO 2021-09-22 12:56:13,933 google.cloud.pubsub_v1.subscriber._protocol.streaming_pull_manager _should_recover 663 : Observed recoverable stream error 503 The service was unable to fulfill your request. Please try again. [code=8a75]\r\nINFO 2021-09-22 12:56:13,934 google.api_core.bidi _reopen 487 : Re-established stream\r\nINFO 2021-09-22 12:56:13,934 google.cloud.pubsub_v1.subscriber._protocol.streaming_pull_manager _should_terminate 685 : Observed non-terminating stream error 503 The service was unable to fulfill your request. Please try again. [code=8a75]\r\nINFO 2021-09-22 12:56:13,934 google.cloud.pubsub_v1.subscriber._protocol.streaming_pull_manager _should_recover 663 : Observed recoverable stream error 503 The service was unable to fulfill your request. Please try again. [code=8a75]**\r\n\r\n\r\nI am using the following code for flow control. The service restarts randomly after say half an hour to one hour. Is there a solution to handle this error so that the service is not down for that half an hour to one hour period.\r\n\r\n\r\n```\r\nsubscription_path = subscriber.subscription_path(project_id, subscription_id)\r\nflow_control = pubsub_v1.types.FlowControl(max_messages=10)\r\nstreaming_pull_future = subscriber.subscribe(\r\n subscription_path, callback=callback_fn, flow_control=flow_control\r\n )\r\n\r\n```\r\n\r\n","author":{"url":"https://github.com/saitej09","@type":"Person","name":"saitej09"},"datePublished":"2021-09-22T13:33:32.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":20},"url":"https://github.com/504/python-pubsub/issues/504"}
| 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:37f0a458-ca5a-51fe-fe0e-94e53fc7c62c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E1B0:1F01:36D277:497305:6A4FEB92 |
| html-safe-nonce | 5587250758e5c750724bae0e62c76756684bb3372749909552a37d27d6f40cc7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMUIwOjFGMDE6MzZEMjc3OjQ5NzMwNTo2QTRGRUI5MiIsInZpc2l0b3JfaWQiOiI3MzU3NTc1MDQ0ODEyMjM3NzE0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 607b59489e95822548e27e034b5ec5abc61d879fba1fa266910e4cb1ddb6fa6b |
| hovercard-subject-tag | issue:1004305268 |
| 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/python-pubsub/504/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e4c88967ad17096559a00bf42c727e5cf9df615877ba76401afa4e9ae41aabd3/googleapis/python-pubsub/issues/504 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e4c88967ad17096559a00bf42c727e5cf9df615877ba76401afa4e9ae41aabd3/googleapis/python-pubsub/issues/504 |
| og:image:alt | Hi I am using google pubsub service with flow control mechanism. I get this error very often after processing few messages. INFO 2021-09-22 12:56:13,932 google.cloud.pubsub_v1.subscriber._protocol.... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | saitej09 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 19b98c3d9767bb8a56238a89ff8401d1cbdf3bc5c353799aacf49fe6c76b4b7c |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/python-pubsub git https://github.com/googleapis/python-pubsub.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 226992581 |
| octolytics-dimension-repository_nwo | googleapis/python-pubsub |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 226992581 |
| octolytics-dimension-repository_network_root_nwo | googleapis/python-pubsub |
| 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 | f7e270be010aa4de2871991025fbb97f3afe2bcb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width