Open kcoderhtml opened 4 months ago
Seeing the same issue with version 1.1.13
of Bun running via AWS Fargate.
Same issue with Bun 1.1.15 on Mac OS 14.5
This line is the issue:
Comments line 1052, 1121-1129 and you'll see it goes through.
Something is broken with the allSettled
Function in this library when used with Bun.
The following change works in Bun:
const settledListenerResults = await allSettled(listenerResults);
const settledListenerResults = await Promise.allSettled(listenerResults);
Aside from the ticket in the issue, it also appears that line 1052 gets hung up and is unable to send a Websockets response back. This works fine in Node.js, not in Bun.
Same error, on bun 1.1.17 (and 1.1.21 canary), slack/bolt 3.19.0 ... I am running bolt in socket mode. As soon as any event fires, the exception occurs. Works with node and deno.
Error: JSGlobalProxy is not a constructor at new UnknownError (/home/bun/node_modules/@slack/bolt/dist/errors.js:30:9) at asCodedError (/home/bun/node_modules/@slack/bolt/dist/errors.js:40:16) at handleError (/home/bun/node_modules/@slack/bolt/dist/App.js:612:44) at processTicksAndRejections (:12:39)
Can confirm for bun 1.1.20 as well
What version of Bun is running?
1.1.10
What platform is your computer?
Linux 6.8.9-arch1-2 x86_64 unknown
What steps can reproduce the bug?
Set up a slack bot using @slack/bolt and listen for events with a set event URL and trigger an event.
What is the expected behavior?
Nothing would be produced because no errors should be caused
What do you see instead?
Additional information
original issue: https://github.com/slackapi/bolt-js/issues/2118#issuecomment-2131128419 the reason they believed it was causing errors: https://github.com/slackapi/bolt-js/issues/2118#issuecomment-2131128419