Comments (5)
Forgot to add this:
command to compile is nim r -d:ssl main.nim
. I also tried patching Jester to force asynchttpserver, which doesn't seem to have this problem as far as I can tell.
from jester.
I also tried patching Jester to force asynchttpserver, which doesn't seem to have this problem as far as I can tell.
For future reference you can just use -d:useStdlib
to make Jester use asynchttpserver
from jester.
Found the bug, statusContent
doesn't return a future in its except
branch: https://github.com/dom96/jester/blob/master/jester.nim#L124.
When reproducing I can see a few of these errors as well:
ERROR Could not send response: Protocol not available
ERROR Could not send response: Protocol not available
So the send
is failing for some reason too.
from jester.
Looks like this bug was introduced in #236 (not blaming anyone, just posting for reference, also important to make sure I don't break what that PR fixed).
from jester.
So this was actually two bugs. Thank you so much for reporting them! It was fun hunting them down :)
Btw prologue will have the same issue, I checked httpx's code and it has the same bug. So the fact that prologue silently worked seems like a bug in its implementation (it is likely swallowing errors).
from jester.
Related Issues (20)
- No way to get raw query parameters
- Relative staticDir behavior changed
- Double log output on http requests HOT 1
- development on windows (httpbeast) HOT 1
- finally block getting called twice? HOT 3
- Support binding on IPv6 address
- `std/cgi` will be moved to nimble packages
- Runtime SIGBUS: HOT 1
- how to use the setCookie fuction? HOT 1
- Docs: adding sections
- formData identical keys
- Bump tag to give new version through nimble HOT 2
- Revert PR #171 which auto decodes URL parameters HOT 6
- The jester.nimble file needs to be updated for v0.6.0 HOT 2
- Cannot serve dynamic web pages HOT 1
- Jester is not working with nim version 2.0.0 HOT 4
- static folder not working HOT 3
- Fix for SIGSEGV: Illegal storage access from lib/system/orc.nim nimIncRefCyclic HOT 1
- [security issue] http 1.1 request smuggling HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jester.