You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 10, 2022. It is now read-only.
I run Nuxt at port 3000 while there is a rails api server at 3001.
In this case, I setup http://localhost:3000/api/* proxies to http://localhost:3001/api/*.
This is both works on a Alpine OS and my MacOS Ventura.
However it breaks on my colleague's Windows 10 also mine when api get fetched by SSR. But I can normally access to http://localhost:3000/api/* without any error. I've tried other public domain URL, but nothing changes.
Furthermore, when ssr set to false will prevent this error.
For this reason, I'm convinced that is a bug highly related to Window Platform and SSR. Maybe it's caused by Vite or Nitro.
http proxy error:Error: socket hang up 17:12:17
at connResetException (node:internal/errors:711:14)
at Socket.socketCloseListener (node:_http_client:467:25)
at Socket.emit (node:events:525:35)
at TCP.<anonymous> (node:net:313:12) {
timestamp: true,
error: Error: socket hang up
at connResetException (node:internal/errors:711:14)
at Socket.socketCloseListener (node:_http_client:467:25)
at Socket.emit (node:events:525:35)
at TCP.<anonymous> (node:net:313:12) {
code: 'ECONNRESET'
}
}
/api/funds -> http://localhost:3001 17:12:36
http proxy error:Error: socket hang up 17:12:36
at connResetException (node:internal/errors:711:14)
at Socket.socketCloseListener (node:_http_client:467:25)
at Socket.emit (node:events:525:35)
at TCP.<anonymous> (node:net:313:12) {
timestamp: true,
error: Error: socket hang up
at connResetException (node:internal/errors:711:14)
at Socket.socketCloseListener (node:_http_client:467:25)
at Socket.emit (node:events:525:35)
at TCP.<anonymous> (node:net:313:12) {
code: 'ECONNRESET'
}
}
The text was updated successfully, but these errors were encountered:
probably has to do with this issue nuxt/nuxt#15492. I had specifically disabled nitro options on windows platforms with the modules because of pathing issues. maybe it's fixed now, i remove d the restrictions on the module so you can test it out, bout other than that I wouldn't have a fix.
ERROR [worker reload] [worker init] Only URLs with a scheme in: file, data are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:'
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Environment
Nuxt Config
Reproduction
(It's a bug related to platform)
Describe the bug
I run Nuxt at port
3000
while there is a rails api server at3001
.In this case, I setup
http://localhost:3000/api/*
proxies tohttp://localhost:3001/api/*
.This is both works on a Alpine OS and my MacOS Ventura.
However it breaks on my colleague's Windows 10 also mine when api get fetched by SSR. But I can normally access to
http://localhost:3000/api/*
without any error. I've tried other public domain URL, but nothing changes.Furthermore, when
ssr
set tofalse
will prevent this error.For this reason, I'm convinced that is a bug highly related to Window Platform and SSR. Maybe it's caused by Vite or Nitro.
Additional context
I've checked bellow links, but nothing helps:
Logs
The text was updated successfully, but these errors were encountered: