Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[vite] failed to connect to websocket #20663

Unanswered
mickosi asked this question in Q&A
Discussion options

Describe the bug

client:765 [vite] failed to connect to websocket.
your current setup:
 (browser) localhost:3000/app/ <--[HTTP]--> localhost:5173/app/ (server)
 (browser) localhost:3000/app/ <--[WebSocket (failing)]--> localhost:5173/app/ (server)

Reproduction

https://github.com/mickosi/nuxt-issue2/blob/main/app/pages/index.vue

Steps to reproduce

No response

System Info

System:
 OS: Linux 6.11 Ubuntu 24.10 24.10 (Oracular Oriole)
 CPU: (4) x64 Intel(R) Pentium(R) CPU
 Memory: 528.65 MB / 3.69 GB
 Container: Yes
 Shell: 5.9 - /usr/bin/zsh
 Binaries:
 Node: 20.16.0 - /usr/bin/node
 Yarn: 1.22.22 - /usr/bin/yarn
 npm: 9.2.0 - /usr/bin/npm
 pnpm: 10.15.0 - /usr/bin/pnpm
 bun: 1.2.5 - /usr/local/bin/bun
 Watchman: 4.9.0 - /usr/bin/watchman
 Browsers:
 Chromium: 138.0.7204.183
nuxt 3

Used Package Manager

npm

Logs

No response

Validations

You must be logged in to vote

Replies: 2 comments 1 reply

Comment options

I'm getting the same error, I'm trying to provide a codesandbox for reproduction

You must be logged in to vote
1 reply
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Converted from issue

This discussion was converted from issue #20662 on August 22, 2025 05:06.

AltStyle によって変換されたページ (->オリジナル) /