Skip to content

Svelte boundary is not catching an awaited remote function error #14808

@iatrophobic

Description

@iatrophobic

Describe the bug

According to the docs if an error is thrown inside of a remote function it should be handled by the nearest svelte:boundary. However, when an error is thrown the svelte error page is displayed instead.

If you navigate to the error it will display the error occasionally on first load, however if the user reloads the page for any reason the error page is displayed.

Reproduction

Stackblitz

Logs

No logs are output

System Info

System:
    OS: macOS 26.0
    CPU: (10) arm64 Apple M4
    Memory: 158.17 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.13.1 - /Users/agill/.nvm/versions/node/v22.13.1/bin/node
    npm: 11.2.0 - /Users/agill/.nvm/versions/node/v22.13.1/bin/npm
    pnpm: 10.18.1 - /Users/agill/.nvm/versions/node/v22.13.1/bin/pnpm
    bun: 1.2.21 - /Users/agill/.bun/bin/bun
  Browsers:
    Chrome: 141.0.7390.123
    Safari: 26.0
  npmPackages:
    @sveltejs/adapter-auto: ^6.1.0 => 6.1.1 
    @sveltejs/kit: ^2.43.2 => 2.47.3 
    @sveltejs/vite-plugin-svelte: ^6.2.0 => 6.2.1 
    svelte: ^5.39.5 => 5.41.3 
    vite: ^7.1.7 => 7.1.12

Severity

annoyance

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions