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

"Connection reset" / "Empty reply from server" instead of HTTP 404 #1578

Closed
vilcans opened this issue Aug 5, 2021 · 0 comments
Closed

"Connection reset" / "Empty reply from server" instead of HTTP 404 #1578

vilcans opened this issue Aug 5, 2021 · 0 comments
Labels
done in pr Already done in a PR

Comments

@vilcans
Copy link
Contributor

vilcans commented Aug 5, 2021

Bug Report

It seems that whenever zola serve doesn't find a file, it just closes the connection instead of returning a 404 page not found error.

Environment

OS: Linux Mint
Zola version: 0.14.0

Expected Behavior

Non-existent URL should give proper HTTP error response.

Current Behavior

No output in the console. Server sends an empty response:

$ curl localhost:1111/adfasdf
curl: (52) Empty reply from server

In Firefox, this shows the error message:

The connection was reset
The connection to the server was reset while the page was loading.

Step to reproduce

zola init zolabug
cd zolabug
zola serve
curl https://localhost:1111/asdf
vilcans added a commit to vilcans/zola that referenced this issue Aug 5, 2021
vilcans added a commit to vilcans/zola that referenced this issue Aug 6, 2021
@Keats Keats added the done in pr Already done in a PR label Aug 8, 2021
@Keats Keats closed this as completed in 17f3fe2 Aug 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
done in pr Already done in a PR
Projects
None yet
Development

No branches or pull requests

2 participants