René's URL Explorer Experiment


Title: Lazy listeners do not work with Chalice local testing server · Issue #490 · slackapi/bolt-python · GitHub

Open Graph Title: Lazy listeners do not work with Chalice local testing server · Issue #490 · slackapi/bolt-python

X Title: Lazy listeners do not work with Chalice local testing server · Issue #490 · slackapi/bolt-python

Description: I want to perform operations when a member has joined a channel which takes more than 5 seconds, but I'm getting BrokenPipeError: [Errno 32] Broken pipe. The minimal step to reproduce the same has been shown below while using the lazy li...

Open Graph Description: I want to perform operations when a member has joined a channel which takes more than 5 seconds, but I'm getting BrokenPipeError: [Errno 32] Broken pipe. The minimal step to reproduce the same has ...

X Description: I want to perform operations when a member has joined a channel which takes more than 5 seconds, but I'm getting BrokenPipeError: [Errno 32] Broken pipe. The minimal step to reproduce the same ...

Opengraph URL: https://github.com/slackapi/bolt-python/issues/490

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Lazy listeners do not work with Chalice local testing server","articleBody":"I want to perform operations when a member has joined a channel which takes more than 5 seconds, but I'm getting **BrokenPipeError: [Errno 32] Broken pipe**.\r\n\r\n\r\nThe minimal step to reproduce the same has been shown below while using the lazy listener it waits for 10 seconds before responding back.\r\n\r\n\r\n### Reproducible in:\r\n\r\n```python\r\nfrom chalice import Chalice, Response\r\nfrom slack_bolt import App\r\nfrom slack_bolt.adapter.aws_lambda.chalice_handler import ChaliceSlackRequestHandler\r\n\r\nbolt_app = App(process_before_response=True)\r\napp = Chalice(app_name='chalice_app_name')\r\nslack_handler = ChaliceSlackRequestHandler(app=bolt_app, chalice=app)\r\n\r\n\r\n@bolt_app.event(\"message\")\r\ndef handle_message_events(body, logger):\r\n    logger.info(body['event']['text'])\r\n\r\n\r\ndef respond_to_slack_within_3_seconds(ack):\r\n    ack(\"Accepted!\")\r\n\r\n\r\ndef say_it(say):\r\n    time.sleep(10)\r\n    say(\"Done!\")\r\n\r\n\r\nbolt_app.event(\"member_joined_channel\")(\r\n    ack=respond_to_slack_within_3_seconds, lazy=[say_it]\r\n)\r\n\r\n\r\n@app.route(\r\n    \"/slack/events\",\r\n    methods=[\"POST\"],\r\n    content_types=[\"application/x-www-form-urlencoded\", \"application/json\"],\r\n)\r\ndef events() -> Response:\r\n    return slack_handler.handle(app.current_request)\r\n\r\n```\r\n\r\n#### The `slack_bolt` version\r\nslack-bolt==1.9.1\r\nslack-sdk==3.11.1\r\n\r\n#### Python runtime version\r\nPython 3.6.15\r\n\r\n#### OS info\r\nUbuntu 20.04.3 LTS\r\n\r\n#### Steps to reproduce:\r\n1. While handling of any Slack event (e.g. handle_member_joined event)\r\n2. Use lazy listener and wait for more than 3 seconds before responding back to Slack \r\n\r\n### Expected result:\r\nSince the event is acknowledging the Slack within 3 seconds irrespective of the lazy listener function time, it should have processed the same.\r\n\r\n### Actual result:\r\n![s1](https://user-images.githubusercontent.com/86968068/136534125-e43559c7-6559-4fa7-82d8-d46119b1a388.png)\r\n![s2](https://user-images.githubusercontent.com/86968068/136532810-112bcd00-24f7-45c7-b06b-6e6bee25f15e.png)\r\n\r\n\r\n## Requirements\r\n\r\nPlease read the [Contributing guidelines](https://github.com/slackapi/bolt-python/blob/main/.github/contributing.md) and [Code of Conduct](https://slackhq.github.io/code-of-conduct) before creating this issue or pull request. By submitting, you are agreeing to those rules.\r\n","author":{"url":"https://github.com/Cyb-Nikh","@type":"Person","name":"Cyb-Nikh"},"datePublished":"2021-10-08T09:42:20Z","url":"https://github.com/slackapi/bolt-python/issues/490"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:9419e3f8-50ad-39b6-f4c5-4da008696324
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD27E:729DB:15A54EA:1CD6CF8:6AFEB8E4
html-safe-nonce9ea9d9133b92b798b0d8607a597b79bdd641faef4309c08dffea22f6d85cb120
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMjdFOjcyOURCOjE1QTU0RUE6MUNENkNGODo2QUZFQjhFNCIsInZpc2l0b3JfaWQiOiI4NDkxOTI5MTg2NzY2NjAwNDIwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac8dace7190cd5da757f8cb10cf66d1d3281fb87de217f36f705283a792a550292
hovercard-subject-tagissue:1020902170
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/slackapi/bolt-python/490/issue_layout
twitter:imagehttps://opengraph.githubassets.com/eff9265985f8bc7a9de0ba0e1eeb90909eab414ca93bdc4cb88c027dd59a87c6/slackapi/bolt-python/issues/490
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/eff9265985f8bc7a9de0ba0e1eeb90909eab414ca93bdc4cb88c027dd59a87c6/slackapi/bolt-python/issues/490
og:image:altI want to perform operations when a member has joined a channel which takes more than 5 seconds, but I'm getting BrokenPipeError: [Errno 32] Broken pipe. The minimal step to reproduce the same has ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameCyb-Nikh
hostnamegithub.com
expected-hostnamegithub.com
None95b2753c978240785d6cca00783c00a371b2d7d9879bb32e305170a1b19bd28e
turbo-cache-controlno-preview
go-importgithub.com/slackapi/bolt-python git https://github.com/slackapi/bolt-python.git
octolytics-dimension-user_id6962987
octolytics-dimension-user_loginslackapi
octolytics-dimension-repository_id268795735
octolytics-dimension-repository_nwoslackapi/bolt-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id268795735
octolytics-dimension-repository_network_root_nwoslackapi/bolt-python
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
release3f25273206cd841171bca0002261ae4c9757d934
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/slackapi/bolt-python/issues/490#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fslackapi%2Fbolt-python%2Fissues%2F490
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fslackapi%2Fbolt-python%2Fissues%2F490
Sign uphttps://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=slackapi%2Fbolt-python
Reloadhttps://github.com/slackapi/bolt-python/issues/490
Reloadhttps://github.com/slackapi/bolt-python/issues/490
Reloadhttps://github.com/slackapi/bolt-python/issues/490
slackapihttps://github.com/slackapi
bolt-pythonhttps://github.com/slackapi/bolt-python
Codehttps://github.com/slackapi/bolt-python
Issues28 (28)https://github.com/slackapi/bolt-python/issues
Pull requests11 (11)https://github.com/slackapi/bolt-python/pulls
Actionshttps://github.com/slackapi/bolt-python/actions
Security and qualityhttps://github.com/slackapi/bolt-python/security
Insightshttps://github.com/slackapi/bolt-python/insights
https://github.com/slackapi/bolt-python
New issuehttps://github.com/login?return_to=https://github.com/slackapi/bolt-python/issues/490
New issuehttps://github.com/login?return_to=https://github.com/slackapi/bolt-python/issues/490
Lazy listeners do not work with Chalice local testing serverhttps://github.com/slackapi/bolt-python/issues/490#top
area:adapterhttps://github.com/slackapi/bolt-python/issues?q=state%3Aopen%20label%3A%22area%3Aadapter%22
enhancementNew feature or requesthttps://github.com/slackapi/bolt-python/issues?q=state%3Aopen%20label%3A%22enhancement%22
good first issuehttps://github.com/slackapi/bolt-python/issues?q=state%3Aopen%20label%3A%22good%20first%20issue%22
1.xhttps://github.com/slackapi/bolt-python/milestone/39
https://github.com/Cyb-Nikh
Cyb-Nikhhttps://github.com/Cyb-Nikh
on Oct 8, 2021https://github.com/slackapi/bolt-python/issues/490#issue-1020902170
https://user-images.githubusercontent.com/86968068/136534125-e43559c7-6559-4fa7-82d8-d46119b1a388.png
https://user-images.githubusercontent.com/86968068/136532810-112bcd00-24f7-45c7-b06b-6e6bee25f15e.png
Contributing guidelineshttps://github.com/slackapi/bolt-python/blob/main/.github/contributing.md
Code of Conducthttps://slackhq.github.io/code-of-conduct
seratchhttps://github.com/seratch
area:adapterhttps://github.com/slackapi/bolt-python/issues?q=state%3Aopen%20label%3A%22area%3Aadapter%22
need infohttps://github.com/slackapi/bolt-python/issues?q=state%3Aopen%20label%3A%22need%20info%22
questionFurther information is requestedhttps://github.com/slackapi/bolt-python/issues?q=state%3Aopen%20label%3A%22question%22
on Oct 8, 2021https://github.com/slackapi/bolt-python/issues/490#event-5433795352
https://github.com/seratch
seratchhttps://github.com/seratch
on Oct 8, 2021https://github.com/slackapi/bolt-python/issues/490#issuecomment-938527333
@Cyb-Nikhhttps://github.com/Cyb-Nikh
https://github.com/Cyb-Nikh
Cyb-Nikhhttps://github.com/Cyb-Nikh
on Oct 8, 2021https://github.com/slackapi/bolt-python/issues/490#issuecomment-938581289
@seratchhttps://github.com/seratch
seratchhttps://github.com/seratch
on Oct 10, 2021https://github.com/slackapi/bolt-python/issues/490#event-5438723757
https://github.com/seratch
seratchhttps://github.com/seratch
on Oct 10, 2021https://github.com/slackapi/bolt-python/issues/490#issuecomment-939384558
@Cyb-Nikhhttps://github.com/Cyb-Nikh
seratchhttps://github.com/seratch
bugSomething isn't workinghttps://github.com/slackapi/bolt-python/issues?q=state%3Aopen%20label%3A%22bug%22
questionFurther information is requestedhttps://github.com/slackapi/bolt-python/issues?q=state%3Aopen%20label%3A%22question%22
need infohttps://github.com/slackapi/bolt-python/issues?q=state%3Aopen%20label%3A%22need%20info%22
on Oct 10, 2021https://github.com/slackapi/bolt-python/issues/490#event-5438727075
https://github.com/Cyb-Nikh
Cyb-Nikhhttps://github.com/Cyb-Nikh
on Oct 10, 2021https://github.com/slackapi/bolt-python/issues/490#issuecomment-939497311
@seratchhttps://github.com/seratch
seratchhttps://github.com/seratch
good first issuehttps://github.com/slackapi/bolt-python/issues?q=state%3Aopen%20label%3A%22good%20first%20issue%22
on Oct 17, 2021https://github.com/slackapi/bolt-python/issues/490#event-5473953364
seratchhttps://github.com/seratch
1.xhttps://github.com/slackapi/bolt-python/milestone/39
on Oct 17, 2021https://github.com/slackapi/bolt-python/issues/490#event-5473953481
seratchhttps://github.com/seratch
enhancementNew feature or requesthttps://github.com/slackapi/bolt-python/issues?q=state%3Aopen%20label%3A%22enhancement%22
bugSomething isn't workinghttps://github.com/slackapi/bolt-python/issues?q=state%3Aopen%20label%3A%22bug%22
on Jan 28, 2022https://github.com/slackapi/bolt-python/issues/490#event-5968004710
Sign up for freehttps://github.com/signup?return_to=https://github.com/slackapi/bolt-python/issues/490
Sign in to commenthttps://github.com/login?return_to=https://github.com/slackapi/bolt-python/issues/490
area:adapterhttps://github.com/slackapi/bolt-python/issues?q=state%3Aopen%20label%3A%22area%3Aadapter%22
enhancementNew feature or requesthttps://github.com/slackapi/bolt-python/issues?q=state%3Aopen%20label%3A%22enhancement%22
good first issuehttps://github.com/slackapi/bolt-python/issues?q=state%3Aopen%20label%3A%22good%20first%20issue%22
1.xNo due datehttps://github.com/slackapi/bolt-python/milestone/39
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.