René's URL Explorer Experiment


Title: PubSub Publisher 504 Deadline Exceeded when sending bulk messages · Issue #72 · googleapis/python-pubsub · GitHub

Open Graph Title: PubSub Publisher 504 Deadline Exceeded when sending bulk messages · Issue #72 · googleapis/python-pubsub

X Title: PubSub Publisher 504 Deadline Exceeded when sending bulk messages · Issue #72 · googleapis/python-pubsub

Description: Environment details OS type and version: PRETTY_NAME="Debian GNU/Linux 10 (buster)" Python version: python --version python3.7 pip version: pip --version 20.0.2 google-cloud-pubsub version: pip show google-cloud-pubsub 1.4.2 Steps to rep...

Open Graph Description: Environment details OS type and version: PRETTY_NAME="Debian GNU/Linux 10 (buster)" Python version: python --version python3.7 pip version: pip --version 20.0.2 google-cloud-pubsub version: pip sho...

X Description: Environment details OS type and version: PRETTY_NAME="Debian GNU/Linux 10 (buster)" Python version: python --version python3.7 pip version: pip --version 20.0.2 google-cloud-pubsub versio...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PubSub Publisher 504 Deadline Exceeded when sending bulk messages","articleBody":"#### Environment details\r\n\r\n  - OS type and version: `PRETTY_NAME=\"Debian GNU/Linux 10 (buster)\"`\r\n  - Python version: `python --version` python3.7\r\n  - pip version: `pip --version`  20.0.2\r\n  - `google-cloud-pubsub` version: `pip show google-cloud-pubsub` 1.4.2\r\n\r\n#### Steps to reproduce\r\n\r\n  1. Send large number of messages to a PubSub Topic fails when I try to send 5000 without pausing and waiting, for example.\r\n  2. Check logs\r\n\r\n#### Code example\r\n\r\n```python\r\n# I have also tried this using the callback and hit the same error. This is what I'm doing now though.\r\niter_size = 5000\r\niter_count = 0\r\nfutures = []\r\nfor row in rows:\r\n     data = json.dumps(row, default=lambda x: str(x)).encode('utf-8')\r\n     future = publish_client.publish(topic, data, origin='xxx')\r\n     futures.append(future)\r\n     published_count += 1\r\n     iter_count += 1\r\n     if iter_count \u003e= iter_size:\r\n           [f.result() for f in futures]\r\n           futures = []\r\n           iter_count = 0\r\n     count += 1\r\n     [f.result() for f in futures]\r\n```\r\n\r\n#### Stack trace\r\n```\r\n[2020-04-14 14:19:23,788] {{thread.py:264}} ERROR - Failed to publish 141 messages.\r\nTraceback (most recent call last):\r\nFile \"/usr/local/lib/python3.7/site-packages/google/api_core/grpc_helpers.py\", line 57, in error_remapped_callable\r\n     return callable_(*args, **kwargs)\r\n   File \"/usr/local/lib/python3.7/site-packages/grpc/_channel.py\", line 826, in __call__\r\n     return _end_unary_response_blocking(state, call, False, None)\r\n   File \"/usr/local/lib/python3.7/site-packages/grpc/_channel.py\", line 729, in _end_unary_response_blocking\r\n     raise _InactiveRpcError(state)\r\n grpc._channel._InactiveRpcError: \u003c_InactiveRpcError of RPC that terminated with:\r\n \tstatus = StatusCode.DEADLINE_EXCEEDED\r\n \tdetails = \"Deadline Exceeded\"\r\n \tdebug_error_string = \"{\"created\":\"@1586873963.056617563\",\"description\":\"Error received from peer ipv4:108.177.122.95:443\",\"file\":\"src/core/lib/surface/call.cc\",\"file_line\":1056,\"grpc_message\":\"Deadline Exceeded\",\"grpc_status\":4}\"\r\n \u003e\r\n```\r\n\r\nOther Details:\r\n\r\nI've found a similar issue here \r\nhttps://github.com/googleapis/google-cloud-java/issues/3867\r\n\r\nWhich references to this issue\r\nhttps://github.com/googleapis/google-cloud-java/issues/3003\r\n\r\nThen\r\nhttps://github.com/googleapis/java-pubsub/issues/31\r\n\r\nThis will normally be running on GKE, so I understand me running it locally may have some variation of behavior due to network speed. However, we would prefer to avoid having this issue either way.\r\n\r\nIs this something that is planned/intended to be supported or should I implement auto-throttling?","author":{"url":"https://github.com/dillonjohnson","@type":"Person","name":"dillonjohnson"},"datePublished":"2020-04-14T14:37:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/72/python-pubsub/issues/72"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:f837453d-af39-655a-fa0e-0ace15dec403
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCB58:7F1A9:840CA8:B2B934:6A4D3C7C
html-safe-nonce1246466a2c66ab619ef00dea91afb6ff512ec2eb2a308e9f7d2eb9fc3791e2b3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjU4OjdGMUE5Ojg0MENBODpCMkI5MzQ6NkE0RDNDN0MiLCJ2aXNpdG9yX2lkIjoiMTA5MTU5NjY2MTk2MjkxNDk0MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac6be797a676b8768f0bec56e2ee60be6337e269b7786308826ceaa316baa819dd
hovercard-subject-tagissue:599622953
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/72/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a7ff04becfab6e530f6d321a14df69b3e4c5a1d323022bae07449d60f6fc38e2/googleapis/python-pubsub/issues/72
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a7ff04becfab6e530f6d321a14df69b3e4c5a1d323022bae07449d60f6fc38e2/googleapis/python-pubsub/issues/72
og:image:altEnvironment details OS type and version: PRETTY_NAME="Debian GNU/Linux 10 (buster)" Python version: python --version python3.7 pip version: pip --version 20.0.2 google-cloud-pubsub version: pip sho...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedillonjohnson
hostnamegithub.com
expected-hostnamegithub.com
None92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6
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
release56fc8347865a14e2ec811533d68f929cf4e0ec19
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/googleapis/python-pubsub/issues/72#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fpython-pubsub%2Fissues%2F72
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%2F72
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/72
Reloadhttps://github.com/googleapis/python-pubsub/issues/72
Reloadhttps://github.com/googleapis/python-pubsub/issues/72
Please reload this pagehttps://github.com/googleapis/python-pubsub/issues/72
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
#96https://github.com/googleapis/python-pubsub/pull/96
PubSub Publisher 504 Deadline Exceeded when sending bulk messageshttps://github.com/googleapis/python-pubsub/issues/72#top
#96https://github.com/googleapis/python-pubsub/pull/96
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
type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.https://github.com/googleapis/python-pubsub/issues?q=state%3Aopen%20label%3A%22type%3A%20feature%20request%22
https://github.com/dillonjohnson
dillonjohnsonhttps://github.com/dillonjohnson
on Apr 14, 2020https://github.com/googleapis/python-pubsub/issues/72#issue-599622953
googleapis/google-cloud-java#3867https://github.com/googleapis/google-cloud-java/issues/3867
googleapis/google-cloud-java#3003https://github.com/googleapis/google-cloud-java/issues/3003
https://github.com/googleapis/java-pubsub/issues/31https://github.com/googleapis/java-pubsub/issues/31
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
type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.https://github.com/googleapis/python-pubsub/issues?q=state%3Aopen%20label%3A%22type%3A%20feature%20request%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.