-
Notifications
You must be signed in to change notification settings - Fork 168
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
Low level servlet request exception if connection is broken while loading a Vite resource #17995
Comments
This happens every now and then in my projects, does nobody else see it? The reproduction instructions here seem wrong though because I cannot reproduce it (anymore) with those and the "Unable to load... from the frontend dev server" sounds like it's a problem with the servlet <-> Vite connection and not user <-> servlet |
I'm also seeing this quite often |
I think the reason is this code
where Flow is catching an |
So probably the real error is somewhere before those exceptions in the log as the exceptions only tell that we cannot continue to serve index.html to a request that was already closed |
…18484) If the failure comes from writing to the original request (e.g. because client has closed/aborted the connection), then we cannot continue trying to write another response to it. If the failure comes from the connection to the Vite server, we still don't know if it would have served a resource or not so we should abort. Fixes #17995 Does not fix the underlying cause for the connection being aborted though but #17995 does not have information about that
…18484) If the failure comes from writing to the original request (e.g. because client has closed/aborted the connection), then we cannot continue trying to write another response to it. If the failure comes from the connection to the Vite server, we still don't know if it would have served a resource or not so we should abort. Fixes #17995 Does not fix the underlying cause for the connection being aborted though but #17995 does not have information about that
…18484) (#18507) If the failure comes from writing to the original request (e.g. because client has closed/aborted the connection), then we cannot continue trying to write another response to it. If the failure comes from the connection to the Vite server, we still don't know if it would have served a resource or not so we should abort. Fixes #17995 Does not fix the underlying cause for the connection being aborted though but #17995 does not have information about that Co-authored-by: Artur <artur@vaadin.com>
Description of the bug
npx @vaadin/cli init load
cd load && mvn
StaticFileServer.serveStaticResource
curl http://localhost:8080/VAADIN/@fs/some-folder/load/node_modules/@vaadin/router/dist/vaadin-router.js?v=c742f5f9
Then you see something like
seems like sometimes the error is instead
Expected behavior
There is nothing in the log. The request for a static file was aborted. Nothing special about that.
Minimal reproducible example
As above
Versions
The text was updated successfully, but these errors were encountered: