Title: subscriber.subscribe() does not surface BaseException() encountered in the user provided callback function to the calling code · Issue #1107 · googleapis/python-pubsub · GitHub
Open Graph Title: subscriber.subscribe() does not surface BaseException() encountered in the user provided callback function to the calling code · Issue #1107 · googleapis/python-pubsub
X Title: subscriber.subscribe() does not surface BaseException() encountered in the user provided callback function to the calling code · Issue #1107 · googleapis/python-pubsub
Description: Currently, the behavior of the library is to catch Exception() when encountered in the user provided callback, surface it to the calling code and shut down the client. python-pubsub/google/cloud/pubsub_v1/subscriber/_protocol/streaming_p...
Open Graph Description: Currently, the behavior of the library is to catch Exception() when encountered in the user provided callback, surface it to the calling code and shut down the client. python-pubsub/google/cloud/pu...
X Description: Currently, the behavior of the library is to catch Exception() when encountered in the user provided callback, surface it to the calling code and shut down the client. python-pubsub/google/cloud/pu...
Opengraph URL: https://github.com/googleapis/python-pubsub/issues/1107
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"subscriber.subscribe() does not surface BaseException() encountered in the user provided callback function to the calling code ","articleBody":"1. Currently, the behavior of the library is to catch Exception() when encountered in the user provided callback, surface it to the calling code and shut down the client. \r\n\r\nhttps://github.com/googleapis/python-pubsub/blob/0562d23f1116219037111432bc4d49f27b879efb/google/cloud/pubsub_v1/subscriber/_protocol/streaming_pull_manager.py#L127 \r\n\r\n2. However, for BaseException() encountered in the user provided callback, the BaseException() is not surfaced to the calling code and the client is not shut down. \r\n\r\n3. Make the behavior of the client when BaseException() is encountered consistent with the behavior of the client when Exception() is encountered.","author":{"url":"https://github.com/mukund-ananthu","@type":"Person","name":"mukund-ananthu"},"datePublished":"2024-03-05T15:36:28.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1107/python-pubsub/issues/1107"}
| 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:ecc18f94-94d6-caf0-adf6-3fa464f0eda7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C4B4:10F1DE:13A6273:1AA7C3B:6A4F166F |
| html-safe-nonce | b9d4cdd6b20b05580587d7a1894b47084c5ee84d51664588c2433e6522a7febd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNEI0OjEwRjFERToxM0E2MjczOjFBQTdDM0I6NkE0RjE2NkYiLCJ2aXNpdG9yX2lkIjoiNzQ3MTQxMjE1MjI2NTI4MzE4MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f87a3893d38c167cb5eaac7ee63aa5fef760bdfc5fbff04ee9840f8faa36d4d2 |
| hovercard-subject-tag | issue:2169543828 |
| 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/1107/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ff235656d173423e21d2e77513f1c0ce7b883d727547e033a0faa546d0fc4889/googleapis/python-pubsub/issues/1107 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ff235656d173423e21d2e77513f1c0ce7b883d727547e033a0faa546d0fc4889/googleapis/python-pubsub/issues/1107 |
| og:image:alt | Currently, the behavior of the library is to catch Exception() when encountered in the user provided callback, surface it to the calling code and shut down the client. python-pubsub/google/cloud/pu... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mukund-ananthu |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| 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 | 2b8f23afb982271f1b22258a94aede67a6b77760 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width