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
When doing a request for /someverylongpath and Vite cannot find the file, it should return 404. It should not throw the internal problem of not being able to run stat on the long path.
We see logs like
[dev-server-output] INFO com.vaadin.base.devserver.DevServerOutputTracker - [vite] Internal server error: ENAMETOOLONG: name too long, stat '/home/runner/work/flow/flow/flow-tests/test-router-custom-context/frontend/push?v-r=push&v-uiId=0&v-pushId=2048a0bb-8bf3-40bc-b809-69c42256b207&X-Atmosphere-tracking-id=0&X-Atmosphere-Framework=3.1.2-javascript&X-Atmosphere-Transport=long-polling&X-Atmosphere-TrackMessageSize=true&Content-Type=application%2Fjson%3B charset%3DUTF-8&X-atmo-protocol=true&_=1675338547549'
in our tests when upgrading from 4.0.2 to 4.1.0. In this case it is a request that should not go to Vite at all but Vite is first consulted to see if Vite has something to serve. When a 404 is returned then the request is redirected to the correct place.
Reproduction
Not sure
Steps to reproduce
For some reason it does not reproduce locally on my mac. Related to the os or os settings perhaps. The test failures are seen on GitHub actions
[dev-server-output] INFO com.vaadin.base.devserver.DevServerOutputTracker - [vite] Internal server error: ENAMETOOLONG: name too long, stat '/home/runner/work/flow/flow/flow-tests/test-router-custom-context/frontend/push?v-r=push&v-uiId=0&v-pushId=2048a0bb-8bf3-40bc-b809-69c42256b207&X-Atmosphere-tracking-id=0&X-Atmosphere-Framework=3.1.2-javascript&X-Atmosphere-Transport=long-polling&X-Atmosphere-TrackMessageSize=true&Content-Type=application%2Fjson%3B charset%3DUTF-8&X-atmo-protocol=true&_=1675338547549'
[dev-server-output] INFO com.vaadin.base.devserver.DevServerOutputTracker - at Object.statSync (node:fs:1596:3)
[dev-server-output] INFO com.vaadin.base.devserver.DevServerOutputTracker - at tryResolveFile (file:///home/runner/work/flow/flow/flow-tests/test-router-custom-context/node_modules/.pnpm/vite@4.1.0/node_modules/vite/dist/node/chunks/dep-b6b8dfbf.js:21592:23)
[dev-server-output] INFO com.vaadin.base.devserver.DevServerOutputTracker - at tryFsResolve (file:///home/runner/work/flow/flow/flow-tests/test-router-custom-context/node_modules/.pnpm/vite@4.1.0/node_modules/vite/dist/node/chunks/dep-b6b8dfbf.js:21565:16)
[dev-server-output] INFO com.vaadin.base.devserver.DevServerOutputTracker - at Context.resolveId (file:///home/runner/work/flow/flow/flow-tests/test-router-custom-context/node_modules/.pnpm/vite@4.1.0/node_modules/vite/dist/node/chunks/dep-b6b8dfbf.js:21401:28)
[dev-server-output] INFO com.vaadin.base.devserver.DevServerOutputTracker - at Object.resolveId (file:///home/runner/work/flow/flow/flow-tests/test-router-custom-context/node_modules/.pnpm/vite@4.1.0/node_modules/vite/dist/node/chunks/dep-b6b8dfbf.js:41581:46)
[dev-server-output] INFO com.vaadin.base.devserver.DevServerOutputTracker - at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[dev-server-output] INFO com.vaadin.base.devserver.DevServerOutputTracker - at async ModuleGraph.resolveUrl (file:///home/runner/work/flow/flow/flow-tests/test-router-custom-context/node_modules/.pnpm/vite@4.1.0/node_modules/vite/dist/node/chunks/dep-b6b8dfbf.js:61105:26)
[dev-server-output] INFO com.vaadin.base.devserver.DevServerOutputTracker - at async ModuleGraph.getModuleByUrl (file:///home/runner/work/flow/flow/flow-tests/test-router-custom-context/node_modules/.pnpm/vite@4.1.0/node_modules/vite/dist/node/chunks/dep-b6b8dfbf.js:60962:23)
[dev-server-output] INFO com.vaadin.base.devserver.DevServerOutputTracker - at async doTransform (file:///home/runner/work/flow/flow/flow-tests/test-router-custom-context/node_modules/.pnpm/vite@4.1.0/node_modules/vite/dist/node/chunks/dep-b6b8dfbf.js:39370:20)
[dev-server-output] INFO com.vaadin.base.devserver.DevServerOutputTracker - [vite] Internal server error: ENAMETOOLONG: name too long, stat '/home/runner/work/flow/flow/flow-tests/test-router-custom-context/frontend/push?v-r=push&v-uiId=0&v-pushId=366bbb56-22ae-42be-be29-a509886b10e5&X-Atmosphere-tracking-id=0&X-Atmosphere-Framework=3.1.2-javascript&X-Atmosphere-Transport=long-polling&X-Atmosphere-TrackMessageSize=true&Content-Type=application%2Fjson%3B charset%3DUTF-8&X-atmo-protocol=true&_=1675338547650'
[dev-server-output] INFO com.vaadin.base.devserver.DevServerOutputTracker - at Object.statSync (node:fs:1596:3)
[dev-server-output] INFO com.vaadin.base.devserver.DevServerOutputTracker - at tryResolveFile (file:///home/runner/work/flow/flow/flow-tests/test-router-custom-context/node_modules/.pnpm/vite@4.1.0/node_modules/vite/dist/node/chunks/dep-b6b8dfbf.js:21592:23)
[dev-server-output] INFO com.vaadin.base.devserver.DevServerOutputTracker - at tryFsResolve (file:///home/runner/work/flow/flow/flow-tests/test-router-custom-context/node_modules/.pnpm/vite@4.1.0/node_modules/vite/dist/node/chunks/dep-b6b8dfbf.js:21565:16)
[dev-server-output] INFO com.vaadin.base.devserver.DevServerOutputTracker - at Context.resolveId (file:///home/runner/work/flow/flow/flow-tests/test-router-custom-context/node_modules/.pnpm/vite@4.1.0/node_modules/vite/dist/node/chunks/dep-b6b8dfbf.js:21401:28)
[dev-server-output] INFO com.vaadin.base.devserver.DevServerOutputTracker - at Object.resolveId (file:///home/runner/work/flow/flow/flow-tests/test-router-custom-context/node_modules/.pnpm/vite@4.1.0/node_modules/vite/dist/node/chunks/dep-b6b8dfbf.js:41581:46)
[dev-server-output] INFO com.vaadin.base.devserver.DevServerOutputTracker - at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[dev-server-output] INFO com.vaadin.base.devserver.DevServerOutputTracker - at async ModuleGraph.resolveUrl (file:///home/runner/work/flow/flow/flow-tests/test-router-custom-context/node_modules/.pnpm/vite@4.1.0/node_modules/vite/dist/node/chunks/dep-b6b8dfbf.js:61105:26)
[dev-server-output] INFO com.vaadin.base.devserver.DevServerOutputTracker - at async ModuleGraph.getModuleByUrl (file:///home/runner/work/flow/flow/flow-tests/test-router-custom-context/node_modules/.pnpm/vite@4.1.0/node_modules/vite/dist/node/chunks/dep-b6b8dfbf.js:60962:23)
[dev-server-output] INFO com.vaadin.base.devserver.DevServerOutputTracker - at async doTransform (file:///home/runner/work/flow/flow/flow-tests/test-router-custom-context/node_modules/.pnpm/vite@4.1.0/node_modules/vite/dist/node/chunks/dep-b6b8dfbf.js:39370:20)
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Describe the bug
When doing a request for /someverylongpath and Vite cannot find the file, it should return 404. It should not throw the internal problem of not being able to run stat on the long path.
We see logs like
in our tests when upgrading from 4.0.2 to 4.1.0. In this case it is a request that should not go to Vite at all but Vite is first consulted to see if Vite has something to serve. When a 404 is returned then the request is redirected to the correct place.
Reproduction
Not sure
Steps to reproduce
For some reason it does not reproduce locally on my mac. Related to the os or os settings perhaps. The test failures are seen on GitHub actions
System Info
Used Package Manager
npm
Logs
Click to expand!
Validations
The text was updated successfully, but these errors were encountered: