Bun

Bun outage (Dec 4): Bun Custom Error.prepareStackTrace Ignored After Property Change

medium

Is it fixed? Not yet.

Ongoing since Dec 4, 12:21 UTC. First reported Dec 4, 12:21 UTC.

What happened

In Bun versions 1.4.4, 1.4.5, and 1.4.5-canary.20261203.1, custom Error.prepareStackTrace functions are ignored for the remainder of the process if it was briefly set as an accessor property and then restored to a plain data property, leaving error.stack as a formatted string.

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

    Custom Error.prepareStackTrace is ignored for the rest of the process after it was briefly an accessor property

    Source

Reports of this outage

1 report · 1 GitHubShow
  1. [1]
    GitHub First report
    Custom Error.prepareStackTrace is ignored for the rest of the process after it was briefly an accessor property(opens GitHub issue in a new tab)

    What version of Bun is running? 1.4.4, 1.4.5, and 1.4.5-canary.20261203.1 (reports 1.4.6) What platform is your computer? Darwin arm64 (macOS 27) and Linux x86_64 (Ubuntu 24.04) What steps can reproduce the bug? If Error.prepareStackTrace is ever turned into an accessor property (getter/setter) and then restored to a plain data property, Bun ignores every custom Error.prepareStackTrace assigned afterwards, for the rest of the process. error.stack stays a formatted string. // repro.js const…

    by ragnsan 0upvotes 1comments

Bun outage FAQ

What happened in the Bun outage, and why?

Ongoing since Dec 4, 12:21 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 outage?

Bun.

When did the Bun outage start and end?

It started Dec 4, 12:21 UTC and is still ongoing (8 h 29 min 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.