Skip to content

event notification stopped after socket mode reconnection #1701

@echoidcf

Description

@echoidcf

Reproducible in:

pip freeze | grep slack
Python 3.12.10

The Slack SDK version

pip freeze | grep slack

Python runtime version

Python 3.12.10

OS info

#225-Ubuntu SMP Fri Jan 10 22:23:35 UTC 2025

Steps to reproduce:

  1. use the sample from offical site https://tools.slack.dev/python-slack-sdk/socket-mode/
  2. kill the tcp session(websocket) between bot and slack sever by tcpkill or iptables or something else
  3. wait for auto reconnection
  4. after that the bot will receive event notification no more
  5. a workaround i figure out myself: after this happens, use client.web_client to do something, query a channel history or post a message to a channel, then the event notication works again.

Expected result:

everything goes well after auto re-connection

Actual result:

no more events notification after that

Metadata

Metadata

Assignees

No one assigned

    Labels

    auto-triage-stalediscussionM-T: An issue where more input is needed to reach a decisionneeds infoAn issue that is claimed to be a bug and hasn't been reproduced, or otherwise needs more info

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions