You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sentry debug-files upload from the standalone binaries fails at random with:
Unexpected error: TypeError: fetch failed
In the Sentry Unreal plugin CI (getsentry/sentry-unreal#1680), about half of the Windows uploads fail. Legacy sentry-cli does not fail this way.
Cause
The [email protected] binaries use Node 26. Its fetch (undici 8) uses HTTP/2 by default. The CLI sends 8 chunk uploads (up to 32 MiB each) at the same time, so they share one HTTP/2 connection. On that connection, sentry.io resets all upload streams except the last one with ENHANCE_YOUR_CALM. Retries hit the same reset, and the error reaches the user without its cause.
The same test with plain node:http2:
Protocol
Uploads at once
Result
HTTP/2, 1 connection
1
1/1 OK
HTTP/2, 1 connection
8
1/8 OK
HTTP/1.1, 8 connections
8
8/8 OK
Legacy sentry-cli uses HTTP/1.1 with one connection per upload.
To reproduce
Upload a debug file with about 200 MiB of new random data with the 0.49.0 binary. The upload fails after about 70 s.
Possible fix
Send chunk uploads over HTTP/1.1 (allowH2: false), as legacy sentry-cli does.
Thanks a lot @tustanivsky for the detailed report and the tested fix. The node:http2 comparison table made the cause clear right away.
Your two commits are on fix/cli-chunk-upload-http1, rebased on main, and you're still the author. I added one commit that fixes the code comments. Node 24 (undici 7.30.1) also registers undici.globalDispatcher.2, so it takes the HTTP/1.1 dispatcher path too. That's harmless, since Node 24 already uses HTTP/1.1. I checked the fix against a local HTTP/2 server with 8 parallel POSTs. On Node 26.13.1 and on Node 24.22.1, all 8 went over HTTP/1.1.
Activity
sentry-junior commentedon Nov 12, 2026
Thanks a lot @tustanivsky for the detailed report and the tested fix. The
node:http2comparison table made the cause clear right away.Your two commits are on
fix/cli-chunk-upload-http1, rebased onmain, and you're still the author. I added one commit that fixes the code comments. Node 24 (undici 7.30.1) also registersundici.globalDispatcher.2, so it takes the HTTP/1.1 dispatcher path too. That's harmless, since Node 24 already uses HTTP/1.1. I checked the fix against a local HTTP/2 server with 8 parallel POSTs. On Node 26.13.1 and on Node 24.22.1, all 8 went over HTTP/1.1.docs(cli): Record why chunk uploads use HTTP/1.1, not one HTTP/2 stre…
docs(cli): Correct when createHttp1Dispatcher returns undefined
docs(cli): Record why chunk uploads use HTTP/1.1, not one HTTP/2 stre…
docs(cli): Correct when createHttp1Dispatcher returns undefined
fix(cli): Upload chunks over HTTP/1.1 to stop HTTP/2 stream resets (g…
fix(cli): Send snapshot uploads over HTTP/1.1 to stop HTTP/2 stream r…