Harden sandbox API error handling and cut v0.1.0-beta.2#2
Merged
Conversation
Surface HTTP status, content-type, and response body on SDK errors so transport failures (proxies, gateways, rate limits) are diagnosable instead of opaque, e.g. "Expected a stream of command data". Retry transport-level failures on idempotent boot commands and on stop/snapshot, via an opt-in retryTransport flag plus a stop() poll fallback, so a mangled or dropped response self-heals instead of aborting the run. Keep a failed-startup snapshot error as a dim aside when it shares the transport cause, instead of a second alarming line above the root error. Bump @vercel/sandbox 2.0.1 to 2.1.1 (its required undici floor is exempt from the release-age gate), and add the v0.1.0-beta.2 release artifacts.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Improves resilience and diagnosability when the Sandbox API returns an unexpected response (seen in the wild as an opaque "Expected a stream of command data" on a stock create-next-app, traced to a transport-layer response, not the user's app).
Changes
stop()/snapshot retry transport-level failures (dropped stream, 408/429/5xx, malformed response) via an opt-inretryTransportflag plus astop()poll fallback. Non-idempotent spawns are untouched.@vercel/sandbox2.0.1 to 2.1.1 (its requiredundicifloor is exempted from the release-age gate).v0.1.0-beta.2artifacts and bumps the installer default.Verification
lint/typecheck/test(145) /buildgreen; bundle 620 KB.up .on a stock create-next-app boots and serves;up stopsnapshots;up .resumes from the snapshot. No transport error.