[error ] Failed to receive or enqueue a message: TypeError, object of type 'NoneType' has no len() #1458
Labels
bug
M-T: A confirmed bug report. Issues are confirmed when the reproduction steps are documented
socket-mode
Version: 3x
Milestone
We are seeing an unexpected error in our async socket mode logs whenever there is a network issue.
Looking at the code, it appears that simply checking if message_data is not None before checking len() would remove this error without any other effects?
python-slack-sdk/slack_sdk/socket_mode/aiohttp/__init__.py
Line 241 in 7e71b73
Reproducible in:
The
slack_sdk
versionslack-bolt 1.18.1 The Bolt Framework for Python
slack-sdk 3.26.2 The Slack API Platform SDK for Python
Python runtime version
Python 3.11.4
OS info
issue also occurs in Docker linux container
ProductName: macOS
ProductVersion: 14.2.1
BuildVersion: 23C71
Darwin Kernel Version 23.2.0: Wed Nov 15 21:54:10 PST 2023; root:xnu-10002.61.3~2/RELEASE_X86_64
Steps to reproduce:
Expected result:
This ERROR should not occur in the normal disconnect/reconnect process:
Actual result:
The text was updated successfully, but these errors were encountered: