Bun node:async_hooks AsyncLocalStorage incorrect value in unhandledRejection
Is it fixed? Not yet.
Ongoing since Nov 12, 17:59 UTC. First reported Nov 12, 17:59 UTC.
What happened
Bun 1.4.4+5d9cc0f4f exhibits a bug where AsyncLocalStorage returns an incorrect value inside an unhandledRejection handler, differing from Node.js behavior.
What caused it?
Under active investigation. No report has identified a root cause yet.
No verified workaround yet
None of the linked reports describe a mitigation. This page updates when one appears.
Timeline
- Investigating(current)
- Workaround available(upcoming)
- Resolved(upcoming)
- First report on GitHub issue
[node:async_hooks] AsyncLocalStorage incorrect value in unhandledRejection handler
Source
Evidence
1 report · 1 GitHubShow
- [1]GitHub First report[node:async_hooks] AsyncLocalStorage incorrect value in unhandledRejection handler(opens GitHub issue in a new tab)
What version of Bun is running? 1.4.4+5d9cc0f4f What platform is your computer? Darwin 27.2.0 arm64 arm What steps can reproduce the bug? The bun implementation doesn't match nodes reference: import { AsyncLocalStorage } from 'node:async_hooks'; process.on('unhandledRejection', () => { console.log([unhandledRejection] storage=${storage.getStore()}); }); const storage = new AsyncLocalStorage(); storage.run('STORAGE', async () => { throw new Error('rejected') }); compare the output: ➜ node…
by kassens 0upvotes 1comments
FAQ
What happened in the Bun issue?
Bun 1.4.4+5d9cc0f4f exhibits a bug where AsyncLocalStorage returns an incorrect value inside an unhandledRejection handler, differing from Node.js behavior.
What is affected by the Bun issue?
Bun (versions: 1.4.4+5d9cc0f4f). Also affected at the same time: Node.js.
When did the Bun issue start and end?
It started Nov 12, 17:59 UTC and is still ongoing (6 d 10 h so far). This page updates as it develops.
How do I get alerts for Bun?
Subscribe to the Bun RSS feed for every new Bun incident, or connect an AI assistant to WhatBrokeToday over MCP and ask whether Bun is down. Bun feed
Where does this information come from?
WhatBrokeToday collects public status pages, developer community reports and security advisories, groups the ones about the same problem, and links every report under Evidence on this page. This one has 1 report from 1 independent source.