Skip to content

fix(cli): Send snapshot uploads over HTTP/1.1 to stop HTTP/2 stream resets - #2439

Merged
BYK merged 2 commits into
mainfrom
lcian/fix-snapshots-upload-http1
Nov 19, 2026
Merged

BYK merged 2 commits into
mainfrom
lcian/fix-snapshots-upload-http1

Conversation

@lcian

@lcian lcian commented Nov 19, 2026

Copy link
Copy Markdown
Member

sentry snapshots upload fails with a bare Unexpected error: TypeError: fetch failed once a snapshot has three or more images over 1 MiB. Objectstore requests now go over HTTP/1.1, as chunk uploads already do since #2210, and a failed request shows its network cause.

This is the same issue as #2201. Images over 1 MiB are PUT individually, 5 at a time, and on Node 26 they share one HTTP/2 connection, where Sentry's edge resets most streams with ENHANCE_YOUR_CALM. I checked this with @sentry/api's putObjects and a logging fetch on 16 images of 6–8 MB: over HTTP/2, 3 of the first 5 PUTs were reset; over HTTP/1.1 with the same concurrency, all 16 uploaded in about 6 s. The objectstore client is unchanged up to @sentry/api 2.16.0, so the fix stays in the CLI adapter.

…esets

On Node 26, fetch uses HTTP/2, so the parallel objectstore PUTs of snapshots upload share one
connection, and Sentry's edge resets all but a couple of them with ENHANCE_YOUR_CALM. Uploads
with three or more images over 1 MiB fail with a bare "TypeError: fetch failed". Use the
HTTP/1.1 dispatcher that chunk uploads already use (#2210), and show the network cause of a
failed request.
@vercel

vercel Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
cli Ready Ready Preview Nov 19, 2026 8:59pm UTC
1 Skipped Deployment
Project Deployment Actions Updated
sentry-local Skipped Skipped Nov 19, 2026 8:59pm UTC

Request Review

@vercel
vercel Bot temporarily deployed to Preview – sentry-local November 19, 2026 20:58 Inactive
@lcian
lcian marked this pull request as ready for review November 19, 2026 21:01
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Nov 19, 2026
@lcian
lcian enabled auto-merge (squash) November 19, 2026 21:03
@lcian
lcian disabled auto-merge November 19, 2026 21:03
@lcian
lcian requested a review from BYK November 19, 2026 21:04
@BYK
BYK merged commit ffb0983 into main Nov 19, 2026
29 checks passed
@BYK
BYK deleted the lcian/fix-snapshots-upload-http1 branch November 19, 2026 21:27

This branch was successfully deployed

1 active and 1 inactive deployments
Preview – cli — 0a083bad Deployed Nov 19, 2026 by vercel[bot]
Preview – sentry-local — 0a083bad Deployed Nov 19, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants