Skip to content
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

Unable to start Slack Bolt application server #26182

Open
ValorHeart opened this issue Oct 12, 2024 · 2 comments
Open

Unable to start Slack Bolt application server #26182

ValorHeart opened this issue Oct 12, 2024 · 2 comments
Labels
bug Something isn't working correctly node compat

Comments

@ValorHeart
Copy link

Version: Deno 2.0.0

Task start deno run --allow-sys --allow-read --allow-env --allow-net ./src/app.ts
[INFO]  socket-mode:SocketModeClient:0 Going to establish a new connection to Slack ...
Warning: Not implemented: ClientRequest.options.createConnection
⚡️ Bolt app is running! ⚡️
error: Uncaught (in promise) Error: Unhandled event 'server explicit disconnect' in state 'connecting'.
    at StateMachine.handleUnhandledEvent (file:///Users/adi/Library/Caches/deno/npm/registry.npmjs.org/finity/0.5.4/lib/core/StateMachine.js:76:13)
    at file:///Users/adi/Library/Caches/deno/npm/registry.npmjs.org/finity/0.5.4/lib/core/HierarchicalStateMachine.js:79:33
    at TaskScheduler.execute (file:///Users/adi/Library/Caches/deno/npm/registry.npmjs.org/finity/0.5.4/lib/core/TaskScheduler.js:29:7)
    at TaskScheduler.enqueue (file:///Users/adi/Library/Caches/deno/npm/registry.npmjs.org/finity/0.5.4/lib/core/TaskScheduler.js:19:12)
    at HierarchicalStateMachine.handle (file:///Users/adi/Library/Caches/deno/npm/registry.npmjs.org/finity/0.5.4/lib/core/HierarchicalStateMachine.js:72:24)
    at SocketModeClient.onWebSocketMessage (file:///Users/adi/Library/Caches/deno/npm/registry.npmjs.org/@slack/socket-mode/1.3.6/dist/SocketModeClient.js:608:31)
    at WebSocket.onMessage (file:///Users/adi/Library/Caches/deno/npm/registry.npmjs.org/ws/7.5.10/lib/event-target.js:132:16)
    at WebSocket.emit (ext:deno_node/_events.mjs:393:28)
    at Receiver.receiverOnMessage (file:///Users/adi/Library/Caches/deno/npm/registry.npmjs.org/ws/7.5.10/lib/websocket.js:1070:20)
    at Receiver.emit (ext:deno_node/_events.mjs:393:28)
@marvinhagemeister marvinhagemeister added bug Something isn't working correctly node compat labels Oct 14, 2024
@reygarcia-develops
Copy link

Version: Deno 2.0.0

Task start deno run --allow-sys --allow-read --allow-env --allow-net ./src/app.ts
[INFO]  socket-mode:SocketModeClient:0 Going to establish a new connection to Slack ...
Warning: Not implemented: ClientRequest.options.createConnection
⚡️ Bolt app is running! ⚡️
error: Uncaught (in promise) Error: Unhandled event 'server explicit disconnect' in state 'connecting'.
    at StateMachine.handleUnhandledEvent (file:///Users/adi/Library/Caches/deno/npm/registry.npmjs.org/finity/0.5.4/lib/core/StateMachine.js:76:13)
    at file:///Users/adi/Library/Caches/deno/npm/registry.npmjs.org/finity/0.5.4/lib/core/HierarchicalStateMachine.js:79:33
    at TaskScheduler.execute (file:///Users/adi/Library/Caches/deno/npm/registry.npmjs.org/finity/0.5.4/lib/core/TaskScheduler.js:29:7)
    at TaskScheduler.enqueue (file:///Users/adi/Library/Caches/deno/npm/registry.npmjs.org/finity/0.5.4/lib/core/TaskScheduler.js:19:12)
    at HierarchicalStateMachine.handle (file:///Users/adi/Library/Caches/deno/npm/registry.npmjs.org/finity/0.5.4/lib/core/HierarchicalStateMachine.js:72:24)
    at SocketModeClient.onWebSocketMessage (file:///Users/adi/Library/Caches/deno/npm/registry.npmjs.org/@slack/socket-mode/1.3.6/dist/SocketModeClient.js:608:31)
    at WebSocket.onMessage (file:///Users/adi/Library/Caches/deno/npm/registry.npmjs.org/ws/7.5.10/lib/event-target.js:132:16)
    at WebSocket.emit (ext:deno_node/_events.mjs:393:28)
    at Receiver.receiverOnMessage (file:///Users/adi/Library/Caches/deno/npm/registry.npmjs.org/ws/7.5.10/lib/websocket.js:1070:20)
    at Receiver.emit (ext:deno_node/_events.mjs:393:28)

Were you able to resolve this? I was looking at rewriting one of my slack bolt apps with deno rather than express.

@ValorHeart
Copy link
Author

Hey @reygarcia-develops, the Deno team needs to implement that API which exists at NodeJS; I've found it related to this issue: #19507

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly node compat
Projects
None yet
Development

No branches or pull requests

3 participants