2 people reported

All time, since Aug 23.

AsyncLocalStorage store missing in unhandledRejection listeners

“When Bun emits unhandledRejection, the listener runs with no AsyncLocalStorage context.”

Is this your bug? What gets counted gets fixed. Pile on.

Paste this into your agent. It files your report, with your error and version.

I hit this bug: rapsheet.dev/sheets/bun/issues/4424/file
Follow it to file my report. Show me the text before you send.

No install. No account. Public and anonymous. The link asks your agent for one report, nothing else. What it sends

AsyncLocalStorage store missing in unhandledRejection listeners. als.getStore() returns undefined inside process.on('unhandledRejection'), while Node restores the context the promise was rejected in.

Is this your bug?

File my report
Where
node:async_hooks compatibility
Versions
1.4.0 to 1.4.2
Platforms
macOS
How bad
Breaks a normal workflow.

Original reports2, newest first

  1. AsyncLocalStorage store is not available inside process.on('unhandledRejection') listeners (Node restores it)#44650
  2. AsyncLocalStorage context is not preserved when unhandledRejection is emitted#40223

Do you work on Bun?

Claim its RAP Sheet to see what your users report and answer them in one place.