-
Notifications
You must be signed in to change notification settings - Fork 79
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
Dynamic route handler fails occasionally on Windows with 404 #149
Comments
Would you see if this is possible to reproduce using just nitro? It seems like this might be a nitro issue. |
Porting the example repo to a simple nitro with minimum changes, I pointed my nuxt app to source from it. I occasionally also see this 404 when going
The config for nitro is:
In testing I've found that the smaller json makes it less frequent, but still results in the 404 upstream. |
I should mention I am only running via |
cc: @pi0 |
I meet the same problem when i sliced a file into chunks and upload with |
Environment
Nuxt project info:
Reproduction
The following sandbox will produce the problem when the
wayfinderContentDir
innuxt.config.ts
is set to./data
rather than./data_mini
on a Windows machinehttps://codesandbox.io/p/sandbox/naughty-platform-hrsvqk
This will sporadically require moving between the pages of
/
and/craft/[id].vue
, where you can see the particular item with only the requested ID rather than it's name and description displayed.Describe the bug
Occasionally instead of receiving an output, instead a dynamic route handler throws a 404 when under enough stress(?) on windows platforms.
Additional context
This problem seems to be when I have a large enough file loaded in the context of a route handler. The
items.json
provided when stripped of the localization information drops from ~250kb, to ~45kb, and reduces or eliminates the problem.In addition the problem does not seem to be reproducible on WSL, or in the code sandbox.
Logs
XHRGET http://localhost:3000/api/item/Spectra_Ruins_C_GW3 [HTTP/1.1 404 Cannot find any path matching /api/item/Spectra_Ruins_C_GW3. 5ms] statusCode 404 statusMessage "Cannot find any path matching /api/item/Spectra_Ruins_C_GW3." stack []
The text was updated successfully, but these errors were encountered: