-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Stuck or slow pending requests #16469
Comments
same question! |
Unfortunately I do not speak Chinese @Allihol, but Google translate was helpful:
I also use an Nginx proxy. You wrote that:
Can you confirm that Nginx did not receive the request until 1.1 minute @Allihol? Or did the request halt at the Nginx proxy for 1.1 minute? |
Thank you for your reply. This project accesses the server through Nginx forwarding. I first request the frontend static resource server and then forward it to the corresponding backend service through proxy_pass.
|
So it seems that the requests stalls in the Vite dev server. |
@Allihol do you also use loadable? |
Relevant but not fixed by #11468 |
I am experiencing the same issue. It occurs when I set up a proxy in My environment is Mac, and despite setting |
Also running into this, hard to create a reproduction environment but the basic desired setup is an nginx server using |
I'm having what could be the same issue Tried node 22.6.0 and 18.18.2 and both will hang. I'm able to simple set my NODE_ENV between using Maybe this can serve as a smaller reproduction codebase. |
Just circling back from Reve, what worked for us was the following configuration change in nginx, it seems the connection keep-alive header that browsers add can cause an upstream hang. May need some additional configuration to keep HMR working.
|
Setting |
Describe the bug
When using the Vite dev server some requests seems to be stuck in a pending state, or they take over a minute to complete. The debug logs does not indicate that this is an issue other than that they take over a minute to complete.
What's particularly odd is that the affected file in this case,
uiData.js
, is quite small. So, it's puzzling why it's taking so long to load. All other requests only take a few milliseconds.This is a relevant issue but it's conversation is locked #5310
I have already tried to increase the open file limit without any success.
Reproduction
I am unable to provide a reproduction without exposing a company's codebase.
Steps to reproduce
Have an existing React project
Install packages with yarn with
yarn
Start the dev server with
vite
Open localhost
Open dev tools in the browser
System Info
Validations
The text was updated successfully, but these errors were encountered: