question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Socket Mode disconnection issue with the aiohttp-based client

See original GitHub issue

Hello, I’m following up after the issue #1065 and upgrading to Slack Bolt 1.8.

Shortly after upgrading, I experienced disconnections. This happened twice in the last 3 days - with the previous version the disconnection has happened every few weeks. What’s visible from my side is a Slack application still running, but unreachable through Slack slash commands. There are no logs related to the websocket, contrary to #1065. The bug symptoms are the same though, which makes me believe it’s related.

Reproducible in:

The Slack SDK version

slack-bolt==1.8.1
slack-sdk==3.10.1
slackclient==1.3.2

Python runtime version

Python 3.8.10

OS info

(running in a Docker container based on python:3.8.10-slim-buster)

Steps to reproduce:

Run the app with socket mode for a few days.

Expected result:

The app is always reachable.

Actual result:

Slash commands or interacting with the app messages lead to the Slack error "/foo failed with the error "dispatch failed".

Thank you for your consideration!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:20 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
matthieucancommented, Sep 30, 2021

Hi @seratch , Apologies for getting back to you late. Thank you for the new releases, we’re now running slack-bolt 1.9.2 and slack-sdk 3.11.2. I’ll report back if any issue appears 😃

0reactions
seratchcommented, Apr 20, 2022

That’s great to hear! Thanks for sharing the result 👍 Let me close this issue now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

slack_sdk.socket_mode.aiohttp API documentation
aiohttp based Socket Mode client … ... web_client: Web API client; auto_reconnect_enabled: True if automatic reconnection is ... async def disconnect(self).
Read more >
Socket Mode implementation - Slack API
Expect disconnects to your WebSocket connection. These may happen when you toggle off Socket Mode in the app config, or for other reasons....
Read more >
Web Server Advanced — aiohttp 3.8.3 documentation
The reason for disconnection is vary; it can be a network issue or explicit socket closing on the peer side without reading the...
Read more >
Client WebSocket disconnects when browser is minimized or ...
The issue: You might be experiencing websocket disconnects after 5-6 minutes of your chrome browser being minimized or out in focus.
Read more >
Remote Desktop client disconnects and can't reconnect to the ...
To work around this issue, you can enable the Configure keep-alive connection interval policy in the Computer Configuration\Administrative ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found