(Filling out the following with as much detail as you can provide will help us solve your issue sooner.)
@slack/bolt version
3.19.0
Your App and Receiver Configuration
const app = new App({
token: process.env.SLACK_BOT_TOKEN,
signingSecret: process.env.SLACK_SIGNING_SECRET,
socketMode: true, // add this
appToken: process.env.SLACK_APP_TOKEN // add this
});
Node.js runtime version
node v20
Steps to reproduce:
(Share the commands to run, source code, and project settings)
- Setup socket mode
- On receiving app_mention event, run an SSH command using Node JS child process - make sure it takes atleast 6 seconds
- You will receive an error when trying to send a response
Expected result:
Allow customization of the timeout as available here: https://github.com/slackapi/node-slack-sdk/blob/3a7d3b5b4b83b3e81beb6b0c65809494301b10cd/packages/socket-mode/src/SocketModeOptions.ts#L29
Actual result:
[INFO] socket-mode:SocketModeClient:0 A pong wasn't received from the server before the timeout of 5000ms!
[INFO] socket-mode:SocketModeClient:0 Reconnecting to Slack ...
[INFO] socket-mode:SocketModeClient:0 Going to establish a new connection to Slack ...
[INFO] socket-mode:SocketModeClient:0 Now connected to Slack
Requirements
(Filling out the following with as much detail as you can provide will help us solve your issue sooner.)
@slack/boltversion3.19.0
Your
Appand Receiver ConfigurationNode.js runtime version
node v20
Steps to reproduce:
(Share the commands to run, source code, and project settings)
Expected result:
Allow customization of the timeout as available here: https://github.com/slackapi/node-slack-sdk/blob/3a7d3b5b4b83b3e81beb6b0c65809494301b10cd/packages/socket-mode/src/SocketModeOptions.ts#L29
Actual result:
[INFO] socket-mode:SocketModeClient:0 A pong wasn't received from the server before the timeout of 5000ms!
[INFO] socket-mode:SocketModeClient:0 Reconnecting to Slack ...
[INFO] socket-mode:SocketModeClient:0 Going to establish a new connection to Slack ...
[INFO] socket-mode:SocketModeClient:0 Now connected to Slack
Requirements