René's URL Explorer Experiment


Title: Resolve Incompatibility with API Core >= 1.17.0 · Issue #93 · googleapis/python-pubsub · GitHub

Open Graph Title: Resolve Incompatibility with API Core >= 1.17.0 · Issue #93 · googleapis/python-pubsub

X Title: Resolve Incompatibility with API Core >= 1.17.0 · Issue #93 · googleapis/python-pubsub

Description: Changes in 1.17.0 are causing an incompatibility with pubsub. Related Issues: googleapis/python-api-core#25 #74 Suspected changes that caused the behavior change: googleapis/python-api-core@2b103b6#diff-d97e81006eaaf29e33270a85aead6aafR1...

Open Graph Description: Changes in 1.17.0 are causing an incompatibility with pubsub. Related Issues: googleapis/python-api-core#25 #74 Suspected changes that caused the behavior change: googleapis/python-api-core@2b103b6...

X Description: Changes in 1.17.0 are causing an incompatibility with pubsub. Related Issues: googleapis/python-api-core#25 #74 Suspected changes that caused the behavior change: googleapis/python-api-core@2b103b6...

Opengraph URL: https://github.com/googleapis/python-pubsub/issues/93

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Resolve Incompatibility with API Core \u003e= 1.17.0","articleBody":"Changes in 1.17.0 are causing an incompatibility with pubsub. \r\n\r\n# Related Issues: \r\n\r\nhttps://github.com/googleapis/python-api-core/issues/25\r\nhttps://github.com/googleapis/python-pubsub/issues/74\r\n\r\n# Suspected changes that caused the behavior change:\r\n\r\nhttps://github.com/googleapis/python-api-core/commit/2b103b60ece16a1e1bc98cfda7ec375191a90f75#diff-d97e81006eaaf29e33270a85aead6aafR146-R148\r\n\r\n# Repro:\r\n\r\n```\r\n\r\nfrom google.cloud import pubsub_v1\r\nimport threading\r\nfrom time import sleep\r\n\r\nimport logging\r\n\r\ndef main():\r\n    logging.basicConfig(level=logging.DEBUG)\r\n    logger = logging.getLogger('sample')\r\n    logger.setLevel(logging.DEBUG)\r\n    PROJECT_ID = \"crwilcox-test\"\r\n    TOPIC_PATH = \"my-topic\"\r\n    SUBSCRIPTION_PATH = \"my-sub\"\r\n\r\n    publisher_thread = threading.Thread(target=publisher, args=(PROJECT_ID, TOPIC_PATH))\r\n    publisher_thread.daemon = True\r\n    publisher_thread.start()\r\n\r\n    subscriber(PROJECT_ID, SUBSCRIPTION_PATH)\r\n\r\ndef publisher(\r\n    project_id, topic_name\r\n):\r\n    # TODO project_id = \"Your Google Cloud Project ID\"\r\n    # TODO topic_name = \"Your Pub/Sub topic name\"\r\n\r\n\r\n    publisher = pubsub_v1.PublisherClient()\r\n    # The `topic_path` method creates a fully qualified identifier\r\n    # in the form `projects/{project_id}/topics/{topic_name}`\r\n    topic_path = publisher.topic_path(project_id, topic_name)\r\n    #publisher.create_topic(topic_path)\r\n\r\n    for n in range(1, 100000):\r\n        data = u\"Message number {}\".format(n)\r\n        # Data must be a bytestring\r\n        data = data.encode(\"utf-8\")\r\n        # When you publish a message, the client returns a future.\r\n        future = publisher.publish(topic_path, data=data)\r\n        print(future.result())\r\n        sleep(5)\r\n\r\n    print(\"Published messages.\")\r\n\r\n\r\n\r\ndef subscriber(\r\n    project_id, subscription_name, timeout=None\r\n):\r\n    # TODO project_id = \"Your Google Cloud Project ID\"\r\n    # TODO subscription_name = \"Your Pub/Sub subscription name\"\r\n    # TODO timeout = 5.0  # \"How long the subscriber should listen for\r\n    # messages in seconds\"\r\n\r\n    subscriber = pubsub_v1.SubscriberClient()\r\n    # The `subscription_path` method creates a fully qualified identifier\r\n    # in the form `projects/{project_id}/subscriptions/{subscription_name}`\r\n    subscription_path = subscriber.subscription_path(\r\n        project_id, subscription_name\r\n    )\r\n\r\n    def callback(message):\r\n        print(\"Received message: {}\".format(message.data))\r\n        message.ack()\r\n\r\n    streaming_pull_future = subscriber.subscribe(\r\n        subscription_path, callback=callback\r\n    )\r\n    print(\"Listening for messages on {}..\\n\".format(subscription_path))\r\n\r\n    # Wrap subscriber in a 'with' block to automatically call close() when done.\r\n    with subscriber:\r\n        try:\r\n            # When `timeout` is not set, result() will block indefinitely,\r\n            # unless an exception is encountered first.\r\n            streaming_pull_future.result(timeout=timeout)\r\n        except:  # noqa\r\n            streaming_pull_future.cancel()\r\n\r\n\r\nmain()\r\n\r\n```\r\n\r\n# Result:\r\n\r\nEventually, subscription will fail and stop processing.\r\n\r\nThe failure exists in bidi on getting the next item via `__iter__`\r\n\r\n```\r\nDEBUG:google.cloud.pubsub_v1.publisher._batch.thread:gRPC Publish took 0.034303903579711914 seconds.\r\n1162512773129262\r\nDEBUG:google.cloud.pubsub_v1.subscriber._protocol.streaming_pull_manager:Sent request(s) over unary RPC.\r\nDEBUG:google.cloud.pubsub_v1.subscriber._protocol.streaming_pull_manager:Released held message, scheduling callback for it, still on hold 0 (bytes 0).\r\nDEBUG:google.api_core.bidi:waiting for recv.\r\nReceived message: b'Message number 117'\r\nDEBUG:google.cloud.pubsub_v1.subscriber._protocol.dispatcher:Handling 1 batched requests\r\nDEBUG:google.cloud.pubsub_v1.subscriber._protocol.streaming_pull_manager:Sent request(s) over unary RPC.\r\niter except: \u003c_MultiThreadedRendezvous of RPC that terminated with:\r\n        status = StatusCode.DEADLINE_EXCEEDED\r\n        details = \"Deadline Exceeded\"\r\n        debug_error_string = \"{\"created\":\"@1588195797.686297000\",\"description\":\"Error received from peer ipv4:216.58.217.42:443\",\"file\":\"src/core/lib/surface/call.cc\",\"file_line\":1056,\"grpc_message\":\"Deadline Exceeded\",\"grpc_status\":4}\"\r\n\u003e\r\nINFO:google.cloud.pubsub_v1.subscriber._protocol.streaming_pull_manager:Observed non-terminating stream error 504 Deadline Exceeded\r\nINFO:google.cloud.pubsub_v1.subscriber._protocol.streaming_pull_manager:Observed recoverable stream error 504 Deadline Exceeded\r\nDEBUG:google.api_core.bidi:Re-opening stream from gRPC callback.\r\nDEBUG:google.api_core.bidi:Empty queue and inactive call, exiting request generator.\r\nDEBUG:google.cloud.pubsub_v1.subscriber._protocol.leaser:The current deadline value is 10 seconds.\r\n```\r\n\r\n```\r\nPYTHON_PATH/lib/python3.8/threading.py(890)_bootstrap()\r\n-\u003e self._bootstrap_inner()\r\n  PYTHON_PATH/lib/python3.8/threading.py(932)_bootstrap_inner()\r\n-\u003e self.run()\r\n  PYTHON_PATH/lib/python3.8/threading.py(870)run()\r\n-\u003e self._target(*self._args, **self._kwargs)\r\n  /workspace/googleapis/python-pubsub/venv/lib/python3.8/site-packages/google/api_core/bidi.py(655)_thread_main()\r\n-\u003e response = self._bidi_rpc.recv()\r\n  /workspace/googleapis/python-pubsub/venv/lib/python3.8/site-packages/google/api_core/bidi.py(562)recv()\r\n-\u003e return self._recoverable(self._recv)\r\n  /workspace/googleapis/python-pubsub/venv/lib/python3.8/site-packages/google/api_core/bidi.py(505)_recoverable()\r\n-\u003e return method(*args, **kwargs)\r\n  /workspace/googleapis/python-pubsub/venv/lib/python3.8/site-packages/google/api_core/bidi.py(559)_recv()\r\n-\u003e return next(call)\r\n\u003e /workspace/googleapis/python-pubsub/venv/lib/python3.8/site-packages/google/api_core/grpc_helpers.py(109)next()\r\n-\u003e six.raise_from(exceptions.from_grpc_error(exc), exc)\r\n```","author":{"url":"https://github.com/crwilcox","@type":"Person","name":"crwilcox"},"datePublished":"2020-04-29T21:33:15.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/93/python-pubsub/issues/93"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:e91eb5a3-2710-884b-ccbe-c79fea59300d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id848E:3ADB25:F02C8:15D928:6A4D04C2
html-safe-noncebb6cec4efd0eea1d186a480fe97eb0739bc44c3f23b36717ab9b166977c274a3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NDhFOjNBREIyNTpGMDJDODoxNUQ5Mjg6NkE0RDA0QzIiLCJ2aXNpdG9yX2lkIjoiODU1MTg0MzEyNTgzNTY2MjUzMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac9ba448644a59db8b4d33ce8edd490843117150b5e545a7a75c046fc3863873a1
hovercard-subject-tagissue:609374346
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/python-pubsub/93/issue_layout
twitter:imagehttps://opengraph.githubassets.com/71eca54768279738d7120dac13eb4a8815d10b35526e69d896602e99c79af265/googleapis/python-pubsub/issues/93
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/71eca54768279738d7120dac13eb4a8815d10b35526e69d896602e99c79af265/googleapis/python-pubsub/issues/93
og:image:altChanges in 1.17.0 are causing an incompatibility with pubsub. Related Issues: googleapis/python-api-core#25 #74 Suspected changes that caused the behavior change: googleapis/python-api-core@2b103b6...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamecrwilcox
hostnamegithub.com
expected-hostnamegithub.com
None31e4db13a9e20081f2fac78f441659a6576e582bbb15e153f9c7fb6473aa29f5
turbo-cache-controlno-preview
go-importgithub.com/googleapis/python-pubsub git https://github.com/googleapis/python-pubsub.git
octolytics-dimension-user_id16785467
octolytics-dimension-user_logingoogleapis
octolytics-dimension-repository_id226992581
octolytics-dimension-repository_nwogoogleapis/python-pubsub
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id226992581
octolytics-dimension-repository_network_root_nwogoogleapis/python-pubsub
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasefb70bd3c4b2bec429781b65419e912c66e2d5581
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/googleapis/python-pubsub/issues/93#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fpython-pubsub%2Fissues%2F93
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fpython-pubsub%2Fissues%2F93
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=googleapis%2Fpython-pubsub
Reloadhttps://github.com/googleapis/python-pubsub/issues/93
Reloadhttps://github.com/googleapis/python-pubsub/issues/93
Reloadhttps://github.com/googleapis/python-pubsub/issues/93
Please reload this pagehttps://github.com/googleapis/python-pubsub/issues/93
googleapis https://github.com/googleapis
python-pubsubhttps://github.com/googleapis/python-pubsub
Notifications https://github.com/login?return_to=%2Fgoogleapis%2Fpython-pubsub
Fork 214 https://github.com/login?return_to=%2Fgoogleapis%2Fpython-pubsub
Star 430 https://github.com/login?return_to=%2Fgoogleapis%2Fpython-pubsub
Code https://github.com/googleapis/python-pubsub
Issues 0 https://github.com/googleapis/python-pubsub/issues
Pull requests 0 https://github.com/googleapis/python-pubsub/pulls
Actions https://github.com/googleapis/python-pubsub/actions
Projects https://github.com/googleapis/python-pubsub/projects
Security and quality 0 https://github.com/googleapis/python-pubsub/security
Insights https://github.com/googleapis/python-pubsub/pulse
Code https://github.com/googleapis/python-pubsub
Issues https://github.com/googleapis/python-pubsub/issues
Pull requests https://github.com/googleapis/python-pubsub/pulls
Actions https://github.com/googleapis/python-pubsub/actions
Projects https://github.com/googleapis/python-pubsub/projects
Security and quality https://github.com/googleapis/python-pubsub/security
Insights https://github.com/googleapis/python-pubsub/pulse
#103https://github.com/googleapis/python-pubsub/pull/103
Resolve Incompatibility with API Core >= 1.17.0https://github.com/googleapis/python-pubsub/issues/93#top
#103https://github.com/googleapis/python-pubsub/pull/103
https://github.com/plamut
api: pubsubIssues related to the googleapis/python-pubsub API.https://github.com/googleapis/python-pubsub/issues?q=state%3Aopen%20label%3A%22api%3A%20pubsub%22
priority: p2Moderately-important priority. Fix may not be included in next release.https://github.com/googleapis/python-pubsub/issues?q=state%3Aopen%20label%3A%22priority%3A%20p2%22
type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.https://github.com/googleapis/python-pubsub/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%22
https://github.com/crwilcox
crwilcoxhttps://github.com/crwilcox
on Apr 29, 2020https://github.com/googleapis/python-pubsub/issues/93#issue-609374346
googleapis/python-api-core#25https://github.com/googleapis/python-api-core/issues/25
#74https://github.com/googleapis/python-pubsub/issues/74
googleapis/python-api-core@2b103b6#diff-d97e81006eaaf29e33270a85aead6aafR146-R148https://github.com/googleapis/python-api-core/commit/2b103b60ece16a1e1bc98cfda7ec375191a90f75#diff-d97e81006eaaf29e33270a85aead6aafR146-R148
plamuthttps://github.com/plamut
api: pubsubIssues related to the googleapis/python-pubsub API.https://github.com/googleapis/python-pubsub/issues?q=state%3Aopen%20label%3A%22api%3A%20pubsub%22
priority: p2Moderately-important priority. Fix may not be included in next release.https://github.com/googleapis/python-pubsub/issues?q=state%3Aopen%20label%3A%22priority%3A%20p2%22
type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.https://github.com/googleapis/python-pubsub/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.