PANE

Bun users see unexpected errors with HTTP requests

10 posts in the last 60 days, all from GitHub.

“What version of Bun is running? 1.2.19+aad3abead What platform is your computer? Linux 6.1.0 37 amd64 x86 64 unknown What steps can reproduce the bug? In extremely rare and unpredictable cases, a node redis Pub/Sub client enters a non functional state after a network failure…”
GitHub
“[!NOTE] 🤖 Claude Opus 5.5 filing on behalf of @NathanColosimo What version of Bun is running? 1.4.5+a7733435c, and 1.4.6 canary.1+5b2417894 What platform is your computer? Darwin 27.2.0 arm64 What steps can reproduce the bug? bun repro.ts : What is the expected behavior? One…”
GitHub
“What version of Bun is running? 1.4.5 What platform is your computer? Linux x86 64 What steps can reproduce the bug? Bun.serve with idleTimeout between 1 and 4 closes a streaming response that is still sending data (a chunk every 250 ms) at about 4 seconds. Run: bun repro.ts…”
GitHub

Bun users are experiencing issues with HTTP requests, including errors like '408 Request Timeout', unexpected connection closures, and incorrect handling of Host headers. These problems arise when using Bun's HTTP server and can impact the stability and functionality of applications.

devtoolshttperrorbunrequests
FIT
0%
SIGNAL
50%
SOURCES14
FRESHEST POST3D AGO
TRACKED SINCE64D AGO

SOURCES (14)

“[!NOTE] 🤖 Claude Opus 5.5 filing on behalf of @NathanColosimo What version of Bun is running? 1.4.5+a7733435c, and 1.4.6 canary.1+5b2417894 What platform is your computer? Darwin 27.2.0 arm64 What steps can reproduce the bug? bun repro.ts : What is the expected behavior? One 200 for…”

GITHUB3d ago

“What version of Bun is running? 1.4.5 What platform is your computer? Linux x86 64 What steps can reproduce the bug? Bun.serve with idleTimeout between 1 and 4 closes a streaming response that is still sending data (a chunk every 250 ms) at about 4 seconds. Run: bun repro.ts What is the expected behavior? The response keeps streaming until the stream closes (40 chunks, 10 s). The socket is not idle: a chunk is written every 250 ms. What do you see instead? Measured on 1.4.5: idleTimeout 1, 2, 3”

GITHUB5d ago

“What version of Bun is running? 1.4.5+a7733435c, also 1.4.6 canary.1+98eae327f. Works on 1.3.11+af24e281e. What platform is your computer? Linux x64 (GitHub Actions ubuntu latest ). What steps can reproduce the bug? A client opens a TCP connection to a node:http server and sends nothing yet. The server then calls server.closeAllConnections() and server.close() . What is the expected behavior? Node 22.23.5: The idle connection is closed together with the server. Bun 1.3.11 also closes it ( 110ms”

GITHUB12d ago

“What version of Bun is running? 1.4.5+a7733435c What platform is your computer? Linux 6.6.87.2 microsoft standard WSL2 x86 64 (Docker 29.9.3, oven/bun:1.4.5 slim ) What steps can reproduce the bug? Two Bun.serve processes on one port with reusePort: true and http3: true . This is what two workers of one server look like, or an old and a new server during a zero downtime restart. server.ts : The client is Playwright 1.65.1 with Chromium 159.0.8154.6, run with origin to force quic on=api.bench:844”

GITHUB13d ago

“What version of Bun is running? 1.4.4 canary.1+11c367163 What platform is your computer? Linux 7.0.0 38 generic x86 64 unknown What steps can reproduce the bug? A node:net client socket whose peer has closed the connection (its 'end' has arrived) gets a write() . Node fails the write and emits 'error' ( EPIPE ) on the socket. Bun calls the write's callback with EPIPE , but the socket never emits 'error' : it goes straight to 'close' with hadError false. So code that waits for the socket rather t”

GITHUBNov 3

“What version of Bun is running? 1.4.4 canary.1+11c367163 What platform is your computer? macOS arm64 (Darwin 25.6.0) What steps can reproduce the bug? What is the expected behavior? Bun's own modules do not block trim . The program contains no eval and no dynamic import. What do you see instead? With the blocker, the report keeps features because "code loaded at run time could use it". For comparison, a program that only uses Bun.serve , built with the same flags: That build shows no blocker. Ad”

GITHUBOct 28

“What version of Bun is running? 1.4.4 What platform is your computer? Darwin 25.6.0 arm64 What steps can reproduce the bug? A node:http server that destroys its ServerResponse before writing any headers, after the request handler has returned (for example, a proxy whose upstream request fails): What is the expected behavior? The connection is closed without a response, as in Node.js (v24.18.0): What do you see instead? Bun writes a successful, empty response before closing: Additional informatio”

GITHUBOct 25

“What version of Bun is running? 1.4.3+c6da4a4d3 (regression; 1.4.2+744846f84 is fine) What platform is your computer? Linux 7.0.0 38 generic x86 64 unknown (official oven/bun:1.4.3 Docker image, network mode: host) What steps can reproduce the bug? I don't have a standalone repro yet (see "Additional information" for everything I tried offline). It happens reliably in production within an hour. Workload: a long running HTTPS client sending 127 GET req/s through 10 SOCKS5 proxies to a single HTTP”

GITHUBOct 15

“What version of Bun is running? 1.4.2+744846f84 What platform is your computer? Darwin 27.0.0 arm64 arm (also seen on Linux x64 in a container, same Bun version) What steps can reproduce the bug? A Bun.serve fetch handler that builds a new Request from the incoming one ( new Request(otherUrl, request) , the usual way to rewrite the URL) and answers without reading the body never releases that body. Every such request adds two protected objects and roughly the body size to the heap, and Bun.gc(tr”

GITHUBOct 13

“What version of Bun is running? 1.3.6+d530ed993 What platform is your computer? Linux 6.12.94+ x86 64 unknown What steps can reproduce the bug? Run a long lived HTTPS client that sequentially paginates a single API host, reusing its keep alive connection: Wait a random 0–5 seconds before each page request. Start a 50 second AbortController timer after that delay. Wait 10 seconds between listing passes, including after a failed pass. Over roughly 3 days, the probe logged 8 requests that hung unti”

GITHUBOct 12

“What happens On a node:http server, a request with Content Length: 0 whose head reaches the parser in two reads is answered, and then the server sends HTTP/1.1 408 Request Timeout on the idle keep alive connection and closes it. The same request in one read leaves the connection open, and so does Node v26.3.0 for both. Repro | Runtime | one | two | | | | | | Node v26.3.0 | open after 3 s "ok" | open after 3 s "ok" | | Bun 1.4.2 (linux x64) | open after 3 s "ok" | closed "okHTTP/1.1 408 Request T”

GITHUBSep 29

“What happens On a node:http server, server.closeIdleConnections() closes the connection of the request whose 'request' listener calls it, when the call comes in the same tick as res.end() . Node v26.3.0 keeps that connection. Repro The script prints kept when the connection answers a second request, and closed when the server closed it. | Runtime | Output | | | | | Node v26.3.0 | kept | | Bun 1.4.2 (linux x64) | closed | | Bun, a build of main 9f70da074 (linux x64) | closed | Other orders Only t”

GITHUBSep 29

“What happens On a node:http server, an Upgrade request that declares a body gets no body and no tunnel bytes when the 'upgrade' listener calls socket.end() in the listener. The socket only ended its write side, so it must still read. Node v26.3.0 delivers the body through req and the later bytes through the socket. The number of reads that the request head takes makes no difference. Repro Node v26.3.0: Bun 1.4.2 and a build of main 9f70da074 (linux x64): Cause Read from the source, not instrumen”

GITHUBSep 29

“What version of Bun is running? 1.2.19+aad3abead What platform is your computer? Linux 6.1.0 37 amd64 x86 64 unknown What steps can reproduce the bug? In extremely rare and unpredictable cases, a node redis Pub/Sub client enters a non functional state after a network failure. There are no errors thrown, but the client stops receiving messages, and even calling .unsubscribe() hangs indefinitely. Meanwhile, other Pub/Sub clients reconnect and function normally. This issue is very rare and non dete”

GITHUBAug 2025

SOLUTION LANDSCAPE

Brought to you byTop Sectors

A Player feature.See how many ways this pain can be solved, who's already building, and where the gaps are.