Skip to content
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

Open
7 tasks done
Magnuti opened this issue Apr 19, 2024 · 0 comments
Open
7 tasks done

Stuck or slow pending requests #16469

Magnuti opened this issue Apr 19, 2024 · 0 comments

Comments

@Magnuti
Copy link

Magnuti commented Apr 19, 2024

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.

image
image (1)
Screenshot 2024-04-19 at 12 59 35 (1)
image

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.

$ ulimit -n    
10496

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

System:
  OS: MacOS Sonoma 14.1
  Chip: Apple M3 Pro
  Memory: 36 GB
  Container: No
  Shell version: zsh 5.9 (x86_64-apple-darwin23.0)
Binaries:
  Node: v18.19.1
  Yarn: 1.22.21
Browsers:
  Both Chrome and Opera seems affected
Relevant npm packages:
  "vite": "^5.2.8"
  "react": "18",
  "typescript": "4.4.4",
  "@loadable/component": "^5.16.3",


### Used Package Manager

yarn

### Logs

<details>
<summary>Click to expand!</summary>

```shell
vite:cache [304] /src/views/financials/evictions/evictions-data-table/index.jsx +1ms
vite:time 0.17ms /src/views/financials/evictions/evictions-data-table/index.jsx +1ms
vite:cache [304] /src/views/financials/evictions/evictions-summary/index.jsx +0ms
vite:time 0.07ms /src/views/financials/evictions/evictions-summary/index.jsx +0ms
vite:cache [304] /src/views/financials/evictions/graphql/getEvictionsSummary.gql?import +0ms
vite:time 0.11ms /src/views/financials/evictions/graphql/getEvictionsSummary.gql?import +1ms
vite:cache [304] /src/views/financials/evictions/helpers/uiData.js +1m
vite:time 0.08ms /src/views/financials/evictions/helpers/uiData.js +1m
vite:cache [304] /src/views/financials/evictions/eviction-filters/index.jsx +0ms
vite:time 0.03ms /src/views/financials/evictions/eviction-filters/index.jsx +0ms
vite:cache [304] /src/views/financials/evictions/eviction-filters/EvictionFiltersForMobile.jsx +8ms
vite:time 0.09ms /src/views/financials/evictions/eviction-filters/EvictionFiltersForMobile.jsx +8ms
vite:cache [304] /src/views/financials/evictions/eviction-filters/EvictionSortFilterForMobile.jsx +0ms
vite:time 0.02ms /src/views/financials/evictions/eviction-filters/EvictionSortFilterForMobile.jsx +0ms

Validations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant