GithubHelp home page GithubHelp logo

Comments (5)

Ericxxt avatar Ericxxt commented on September 28, 2024 1

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.

filmaj avatar filmaj commented on September 28, 2024 1

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 a slack_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 actual slack_events. <-- 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.

filmaj avatar filmaj commented on September 28, 2024

This should not be an error anymore in bolt v3.18 or newer.

from bolt-js.

seratch avatar seratch commented on September 28, 2024

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.

Ericxxt avatar Ericxxt commented on September 28, 2024

Thank you, I'll upgrade the version!

from bolt-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.