-
Notifications
You must be signed in to change notification settings - Fork 395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
slack_socket_mode_no_reply_received_error bot stopped responding with socket mode #820
Comments
Hey @timja! Thanks for reporting this! Is the code still doing this or did the problem go away after you restarted the app? |
Went away after restarting it |
Glad to hear that! I'm going to leave this issue open for a little while to see if others are facing it. |
FWIW, the underlying "ws" package has been fixing bugs in v7 minor/patch versions. If your app uses a bit old version of it, upgrading ws to the latest may be worth trying. See also: slackapi/node-slack-sdk#1322 |
Thanks will give it a try. We’ve seen this quite a few times |
Seems we are on: [email protected] /Users/timja/projects/hmcts/slack-help-bot A little bit lower than the minimum version here: https://github.com/slackapi/node-slack-sdk/pull/1322/files, but either needs a resolution entry or a bump here I think? Is there any reason you aren't using the 8.x version? |
@timja We haven't received any issue reports with ws v8 so far but the major version was released just a month ago. That's the only reason why we didn't upgrade the minimum major version this time. After watching for a while, we may consider changing the version range of ws in the future. |
Hello, I also faced an issue where the app was successfully running in socketMode and when a temporary network issue occurred, the app was unable to automatically reconnect and a manual restart of the application was required to get it running again. I'm running @slack/bolt version
Logs:
I tried to have my app catch the error and just kill the process if it happens, but it doesn't seem to end up in the global error handler |
@Ohiekkar I implemented this work around to have my process monitor (Kubernetes in this case) restart it if this happened: No reports of issues since implementing that |
@timja Thanks for sharing the workaround 🙇 I've applied a bunch of improvements to the underlying npm i @slack/socket-mode@next
# or npm i @slack/[email protected] If you are interested in all the changes included in the release, refer to https://github.com/slackapi/node-slack-sdk/releases/tag/%40slack%2Fsocket-mode%401.3.0-rc.0 for the details. If everything goes well, we will release v1.3.0 next week! Also, Since we won't have any further activities on this thread, let me close this issue now. Thanks again for taking the time to share the issue here! |
Description
Hello we had an issue with an internal slack bot that we have written.
It stopped responding to us and when we checked the logs they were full of:
Not sure if it's a mistake in our implementation or something lower level, any guidance welcomed,
The code can be found here: https://github.com/hmcts/slack-help-bot/blob/main/app.js
What type of issue is this? (place an
x
in one of the[ ]
)Requirements (place an
x
in each of the[ ]
)Bug Report
Filling out the following details about bugs will help us solve your issue sooner.
Reproducible in:
package version:
3.0.0
node version:
v14.8.0
OS version(s):
3.11.6
NAME="Alpine Linux"
Steps to reproduce:
Expected result:
bot reconnects automatically
Actual result:
bot was stuck in a disconnected state and didn't respond to new events / messages until it was restarted
Attachments:
https://github.com/hmcts/slack-help-bot/blob/main/app.js
The text was updated successfully, but these errors were encountered: