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

Can't send the css file correctly #172

Open
bagomot opened this issue Mar 24, 2021 · 1 comment
Open

Can't send the css file correctly #172

bagomot opened this issue Mar 24, 2021 · 1 comment

Comments

@bagomot
Copy link

bagomot commented Mar 24, 2021

I am trying to serve my stylesheet in my template:
<link rel="stylesheet" href="css/style.css" />
I have configured mime.properties:
css=text/css
and encoding.properties:
text/css=utf-8
The style file itself is in UTF-8 encoding without BOOM.
The server sends the file via a direct link, but when trying to apply styles, it writes:

Failed to load resource: net::ERR_INVALID_CHUNKED_ENCODING

The server console writes this:

2021-Mar-24 20:28:08.7966476 | 11960 | warning | checkErro | erro=-1, dwLastError=10053 | C:\Users\user\AppData\Local\dub\packages\hunt-1.7.5\hunt\source\hunt\io\channel\iocp\Common.d:42
2021-Mar-24 20:28:08.7976483 | 11960 | error | AbstractStream.doWrite | Socket error on write: fd=1096, message=An established connection was aborted by the software in your host machine. | C:\Users\user\AppData\Local\dub\packages\hunt-1.7.5\hunt\source\hunt\io\channel\iocp\AbstractStream.d:243

I also noticed that if I reload the page many times, there is a chance that the styles will be loaded successfully, but the next time it will be a failure.

What am I doing wrong?

@Heromyth
Copy link
Contributor

It seems the underlying IO functions are unstable on Windows. It's true for our tests.
You can have a test on Linux. It's more stable.

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

No branches or pull requests

2 participants