WhatBrokeToday
GTA 6FAQ
Bun

Bun fetch() Rejects Malformed Data URLs with Error Instead of TypeError

minor

Is it fixed? Not yet.

Ongoing since Nov 20, 04:54 UTC. First reported Nov 20, 04:54 UTC.

What happened

Bun incorrectly rejects `fetch()` calls for malformed data URLs with a plain `Error` instead of a `TypeError`, diverging from both the Fetch standard and Node.js behavior. The issue affects developers testing on canary versions as well as versions 1.4.5 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.

Timeline

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

    fetch() of a malformed data: URL rejects with a plain Error ("failed to fetch the data URL"), where the Fetch standard and Node reject with a TypeError

    Source

Evidence

1 report · 1 GitHubShow
  1. [1]
    GitHub First report
    fetch() of a malformed data: URL rejects with a plain Error ("failed to fetch the data URL"), where the Fetch standard and Node reject with a TypeError(opens GitHub issue in a new tab)

    What version of Bun is running? 1.4.6-canary.1+eaeb8564c; also 1.4.5+a7733435c and 1.4.4+38afee6c8 What platform is your computer? Microsoft Windows NT 10.0.26300.0 x64 What steps can reproduce the bug? bun -e "fetch('data:font/ttf;base64').catch((error) => console.log(error.constructor.name, error instanceof TypeError, error.message))" prints Error false failed to fetch the data URL. The same line under node -e (v26.12.1) prints TypeError true fetch failed. The gist fetches one valid and two…

    by YevheniiKotyrlo 0upvotes 1comments

FAQ

What happened in the Bun outage?

Bun incorrectly rejects `fetch()` calls for malformed data URLs with a plain `Error` instead of a `TypeError`, diverging from both the Fetch standard and Node.js behavior. The issue affects developers testing on canary versions as well as versions 1.4.5 and 1.4.4.

What is affected by the Bun outage?

Bun (versions: 1.4.6-canary.1+eaeb8564c, 1.4.5+a7733435c, 1.4.4+38afee6c8).

When did the Bun outage start and end?

It started Nov 20, 04:54 UTC and is still ongoing (31 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.