这是indexloc提供的服务,不要输入任何密码
Skip to content

[Bug]: Browser not receiving message from Vite (connection aborted / timeout) #652

@nzxl101

Description

@nzxl101

Description

When running the dev environment for a longer time the Vite proxy starts dropping connections and spamming the console log.
Seems to also happen when I run a new tuono instance while a Browser with a rendered state from before is still open.

e.g.

Failed to send back message from vite to browser: IO error: An established connection was aborted by the software in your host machine. (os error 10053)

Expected behaviour

Better handling of dropped connections

How to reproduce

Upgraded from v0.17.6 to v0.18
Run tuono dev on >=v0.18
Using TanStack Query to fetch data from an API route that returns a JSON object with some data in it.

export function AdGuard() {
    const { data, isLoading, error } = useQuery({
        queryKey: ["adguard-stats"],
        queryFn: () => fetch("/api/adguard/stats").then((res) => res.json()),
        refetchInterval: 3 * 60e3,
    });
}

Screenshots

Image

System Info

System:
    OS: Windows 11 10.0.26100
    CPU: (16) x64 AMD Ryzen 7 5800X 8-Core Processor
    Memory: 2.47 GB / 15.93 GB
  Binaries:
    Node: 20.15.0 - C:\Program Files\nodejs\node.EXE
    npm: 10.7.0 - C:\Program Files\nodejs\npm.CMD
    pnpm: 9.12.2 - C:\Program Files\nodejs\pnpm.CMD
  Browsers:
    Edge: Chromium (131.0.2903.112)
    Internet Explorer: 11.0.26100.1882
  npmPackages:
    tuono: 0.18.0 => 0.18.0

System info (Rust)

rustc 1.83.0 (90b35a623 2024-11-26)
cargo 1.83.0 (5ffbef321 2024-10-29)
tuono 0.18.0

Additional context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingrustRequires rust knowledge

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions