Bun

Bun issue (Dec 2): Bun Unhandled Rejection Fails to Trigger uncaughtExceptionMonitor

medium

Is it fixed? Not yet.

Ongoing since Dec 2, 05:26 UTC. First reported Dec 2, 05:26 UTC.

What happened

An unhandled promise rejection in Bun 1.4.5 fails to trigger the uncaughtExceptionMonitor event and reports an exit code of 0. Additionally, unhandledRejection handlers run without the AsyncLocalStorage context of the rejected promise.

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.

Outage timeline

  1. Investigating(current)
  2. Workaround available(upcoming)
  3. Resolved(upcoming)
  1. First report on GitHub issue

    Unhandled rejection: uncaughtExceptionMonitor not called and exit event reports code 0

    Source

Reports of this outage

2 reports · 2 GitHubShow
  1. [1]
    GitHub First report
    Unhandled rejection: uncaughtExceptionMonitor not called and exit event reports code 0(opens GitHub issue in a new tab)

    What version of Bun is running? 1.4.5+a7733435c What platform is your computer? Darwin 27.2.0 arm64 (also reproduced in the oven/bun:1.4.5 Docker image, Linux aarch64) What steps can reproduce the bug? // repro.mjs process.on("uncaughtExceptionMonitor", (error, origin) => { console.log("uncaughtExceptionMonitor:", origin, error.message); }); process.on("exit", (code) => { console.log("exit event code:", code, "process.exitCode:", process.exitCode); }); Promise.reject(new Error("boom")); bun…

    by harshmandan 0upvotes 1comments

  2. [2]
    GitHub
    `unhandledRejection` handlers run without the AsyncLocalStorage context of the rejected promise (Node.js passes it)(opens GitHub issue in a new tab)

    What version of Bun is running? 1.4.5 (also 1.4.4 and 1.4.6-canary.1) What platform is your computer? macOS arm64 (Darwin 27.2) What steps can reproduce the bug? // als.cjs const { AsyncLocalStorage } = require("node:async_hooks"); const als = new AsyncLocalStorage(); process.on("unhandledRejection", () => { console.log("store in handler:", als.getStore()); }); als.run({ id: "request-1" }, () => { Promise.reject(new Error("orphan")); }); What is the expected behavior? Node.js (v24.22.3) runs…

    by kojunho7 0upvotes 1comments93% match

Bun issue FAQ

What happened in the Bun issue, and why?

Ongoing since Dec 2, 05:26 UTC. No cause has been published yet; this page adds it once the vendor or a report explains it.

What is affected by the Bun issue?

Bun (versions: 1.4.5).

When did the Bun issue start and end?

It started Dec 2, 05:26 UTC and is still ongoing (2 d 20 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 2 reports from 1 independent source.