Comments (6)
I realized that calling RTMClient#disconnect()
then RTMClient#connect()
surely doesn;t work for the case. So, since version 1.3.0, I've added RTMClient#reconnect()
which works for any cases.
Also, I applied the changes to RTMClient
regarding its behavior when receiving some errors. Previously, the client used to abandon the underlying WebSocket session when it gets errors, anyway. But I found that it's not a proper way to handle errors. Therefore, since version 1.3.0, the default error handler no longer does the removal of sessions. The change may be beneficial for your use cases.
from java-slack-sdk.
I've not investigated your situation on my end yet but, at least, I can say that you don't need to reboot the entire application. RTMClient
doesn't depend on any states inside your singleton Slack instance except for wssUrl
. So, I guess, when you have the unexpected shut down of the RTM client, you should be able to recover it by just calling RTMClient#disconnect()
then RTMClient#connect()
. The connect
method establishes a new session with the server. https://github.com/seratch/jslack/blob/1.1.7/src/main/java/com/github/seratch/jslack/api/rtm/RTMClient.java#L31-L35
from java-slack-sdk.
Weirdly, that did not work.
I stopped making Slack
a bean and instead created a holder that was a bean, had it discard and recreate the Slack
object and initialize it.
That works, and for now, my problem is gone.
I'll leave this open to investigate the The decoded text message was too big for the output buffer and the endpoint does not support partial messages
error.
Thanks!
from java-slack-sdk.
Thank you for your response. I'm fine to leave this issue open, too.
from java-slack-sdk.
Let me know if I should not close this issue. Otherwise, please allow me to close this within a few days.
from java-slack-sdk.
Thanks! I haven't seen this problem in a while.
from java-slack-sdk.
Related Issues (20)
- Can we make multiUsersSelect dropdown mandatory, if required? HOT 2
- busy to open/close a connection when running slack socket mode for days HOT 28
- RichTextSectionElement.Broadcast does not have style property HOT 2
- Use MultiTeamAuthorization when making slack api requests without an event HOT 8
- Not able to add bots to DMs/MPDMs HOT 15
- auth.test API timeout with SSLException in develop environment but works fine in local HOT 3
- HTTP4K Duplicate Header exception HOT 3
- Field mismatch with to response. HOT 6
- A bug on the metric calculation inside async API clients
- Add slack_file object to image block / block element classes
- AsyncMethodsRateLimiter does not handle ratelimitted errors properly HOT 3
- Append `thread_ts` to the payload of a lazy listener in Slash Commands HOT 1
- Kotlin extension should be populated with an earlier api target HOT 4
- Fail to run event listeners for app_mention events with bot_message subtype HOT 1
- Slack mobile shows "Unable to show preview" despite fallback text() being present HOT 3
- AdminInviteRequestsListRequest missing an optional argument HOT 3
- How to know when the end of a cursor-iteration was reached? HOT 3
- Slack fails to stop metrics and OkHTTPClient threads when calling *.close() HOT 3
- `auth.test` in `MultiTeamsAuthorization` HOT 10
- Add documentation for using the `SlackSignature` verifier from `app_backend` with specific Java requirements HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from java-slack-sdk.