-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
devserver proxy to grafana crashs #12664
Comments
same error on v4.2.1 and latest beta
VITE v4.2.1 ready in 1277 ms ➜ Local: http://localhost:5173/ Error: read ECONNRESET Node.js v19.8.1 VITE v4.3.0-beta.1 ready in 1082 ms ➜ Local: http://localhost:5173/ Error: read ECONNRESET Node.js v19.8.1 |
It works fine even on v4.0.4 when I comment // ws:true leaving the ws request pending. It looks like a new websocket proxy problem for all the versions above. |
Hello @rawbin-. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with |
refer to this issue http-party/node-http-proxy#1468 |
Describe the bug
normally proxy to grafana without crash
Reproduction
tring to create the demo
Steps to reproduce
1、run dev server
2、proxy the /grafana prefix to the grafana server
3、open a page with a iframe whose src is a /grafana/xxx/dashboard address
4、and the dev server crashes every time when I open the page, with the following error, everything goes well except this one
VITE v4.0.4 ready in 711 ms
➜ Local: http://localhost:5173/
➜ Network: use --host to expose
➜ press h to show help
node:events:490
throw er; // Unhandled 'error' event
^
Error: read ECONNRESET
at TCP.onStreamRead (node:internal/stream_base_commons:217:20)
Emitted 'error' event on Socket instance at:
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
errno: -54,
code: 'ECONNRESET',
syscall: 'read'
}
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: