WhatBrokeToday
FAQ
Bun

Bun issue (Nov 21): Bun Request Constructor Retains Input Request Headers Unexpectedly

minor

Is it fixed? Not yet.

Ongoing since Nov 21, 17:50 UTC. First reported Nov 21, 17:50 UTC.

What happened

Bun incorrectly retains the input request's headers when instantiating a new Request object with an empty headers object or new Headers() instance. The issue reproduces on version 1.4.6-canary.1 and 1.4.4.

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

    new Request(request, { headers: {} }) keeps the input request's headers

    Source

Reports of this outage

1 report · 1 GitHubShow
  1. [1]
    GitHub First report
    new Request(request, { headers: {} }) keeps the input request's headers(opens GitHub issue in a new tab)

    What version of Bun is running? 1.4.6-canary.1+b15f51302 (also reproduces on 1.4.4+38afee6c8) What platform is your computer? Darwin 25.5.0 arm64 What steps can reproduce the bug? const r = new Request("http://x/", { headers: { "x-a": "1" } }); console.log(new Request(r, { headers: {} }).headers.get("x-a")); console.log(new Request(r, { headers: new Headers() }).headers.get("x-a")); console.log(new Request(r, { headers: { "x-b": "2" } }).headers.get("x-a")); What is the expected behavior?…

    by martincollignon 0upvotes 1comments

Bun issue FAQ

What happened in the Bun issue, and why?

Ongoing since Nov 21, 17:50 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.4, 1.4.6-canary.1).

When did the Bun issue start and end?

It started Nov 21, 17:50 UTC and is still ongoing (5 h 5 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.