Comments (5)
This should not be an error anymore in bolt v3.18 or newer.
Thank you, any description link related to the fixed issue?
from bolt-js.
Sorry just saw this! @Ericxxt the following change in socket-mode 1.3.5 fixes the issue in this thread:
All
type:disconnect
messages from the Slack backend now do not raise aslack_event
event; this led to problems, particularly for users of bolt-js.
The details here are:
- bolt-js listens on
slack_event
events raised by socket-mode, to know when e.g. a new event is delivered to the app when the app is connected over socket mode - in the case that your app has more than the maximum allowed concurrent websocket connections open (10), Slack backend will send messages to your app that look like
{type:"disconnect", reason: "too_many_websockets"}
- older versions of the socket-mode package would raise all
type:disconnect
messages as actualslack_event
s. <-- this was incorrect behaviour - when bolt-js went to parse these raised socket-mode events, it assumed the existence of certain properties on this event payload, like
body
. In this scenario,body
is undefined, so when bolt went to process the event, it tried to infer certain sub-properties and eventually hit this line, which is what caused the error you saw.
from bolt-js.
This should not be an error anymore in bolt v3.18 or newer.
from bolt-js.
Please upgrade the underlying @slack/socket-mode
library to this version: https://github.com/slackapi/node-slack-sdk/releases/tag/%40slack%2Fsocket-mode%401.3.5 With the upgrade, this issue should be resolved.
from bolt-js.
Thank you, I'll upgrade the version!
from bolt-js.
Related Issues (20)
- Incorrectly formatted threaded broadcast reply message will raise `thread_broadcast` event HOT 7
- `PinnedMessageItem` interface missing `ts` HOT 1
- Multiple fields missing in `ChannelCreatedEvent` interface
- (Set a clear title describing the issue) HOT 2
- `client.chat.postMessage` with a user token throws `invalid_auth` error HOT 3
- Allow in thread response in `respondFn` HOT 1
- How do I ignore threaded messages from within the message listener? HOT 3
- ERROR : Please try again or contact the app owner (reason: slack_oauth_missing_code) HOT 15
- chat:write:bot permission needed even though I have chat:write permission HOT 6
- Slack Block Builder do not update static select value in modal HOT 2
- Keep getting ETIMEDOUT errors / warning messages HOT 10
- How to get rich_text_input in slack modal ? HOT 14
- Receiving multiple events for simple messages in web socket mode HOT 2
- Upgrade axios to resolve CVE-2024-39338 HOT 3
- Supporting for Socket client & server timeout missing HOT 6
- Install and authorize multiple slack app clients with a single bolt js server HOT 5
- Using bolt's redirect URI for OIDC HOT 10
- Bolt App Methods Hanging with `ETIMEDOUT` Warning During `chat.postMessage` Execution HOT 18
- User-level authorization instruction on OAuth documentation is unclear. HOT 2
- Socket mode not response HOT 11
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 bolt-js.