-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Use of closed tcp connection upon message send #97
Comments
Same issue here, when sending a message through RTM with the the following code:
The RTM event I receive:
EDIT:
|
Worked fine before, but started a few days ago. This code:
now results in i/o timeout and disconnect:
Looks like RTM hits some new rate limits, and Slack closes connection. I had to turn off typing notifications. api.PostMessage works fine. |
So I'm using this wrapper for the bot, which uses That's cool, I'm just curious what we can do for this lib to fix RTM as well. |
I think this is related with nlopes@b7940f2. I'm reverting until I have some time to look into these issues. |
Reverted branch works well indeed. |
I can confirm that this commit caused the problem: nlopes@8955910 Also, it seems that we're attempting to set the write deadline on the PING only where in actuality when using So there are two issues:
I just submitted this PR #102 to resolves these issues. |
So either I'm dumb or something's not working.
I've implemented a smallish bot using the lib that's supposed to respond to messages.
But after running for a while all incoming messages are processes, but once it tries to send a message I hit the following:
Message is also not being re-sent on reconnect. Any ideas what I'm doing wrong? I saw that
sendOutgoingMessage
doesn't handle connection drops, but...The text was updated successfully, but these errors were encountered: