Skip to content

fix: preserve transport errors from remote queries - #17269

Draft
svelte-triage-bot[bot] wants to merge 1 commit into
mainfrom
triage/kit-17268-remote-network-error
Draft

svelte-triage-bot[bot] wants to merge 1 commit into
mainfrom
triage/kit-17268-remote-network-error

Conversation

@svelte-triage-bot

Copy link
Copy Markdown
Contributor
  • Remote queries passed every client failure through handleError and rethrew HandledHttpError, so an offline fetch incorrectly appeared to be an HTTP 500.
  • #16245 introduced the normalized reactive .error contract and #16664 finalized handled HTTP failures; this keeps that contract while separating the imperative rejection.
  • Preserve original non-HTTP rejections, retain finalized HTTP errors, and track the rejection for superseded awaiters. An exported NetworkError was rejected because native fetch errors are already distinguishable with isHttpError, without defining a new cross-resource API.
  • The shared Query path covers ordinary and batched queries, including overlapping requests, while leaving reactive .error, live-query retries, prerender resources, forms, and commands unchanged.

Fixes #17268

@pkg-svelte-dev

Copy link
Copy Markdown

Install the latest version of @sveltejs/kit from 0b607f6:

pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/0b607f6cd764f2235c5c5db3d8835f76fbfb571d

Open in pkg.svelte.dev: https://pkg.svelte.dev/repos/kit/pr/17269

Note

This PR is from a fork. A maintainer must approve approve each commit before it can be built and installed.

@changeset-bot

changeset-bot Bot commented Sep 30, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 0b607f6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@sveltejs/kit Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@teemingc teemingc reopened this Oct 1, 2026
@teemingc
teemingc changed the base branch from version-3 to main October 1, 2026 20:48

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remote Functions - return network error when user is offline

2 participants