-
Notifications
You must be signed in to change notification settings - Fork 321
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
Error 'upstream prematurely closed connection while reading response header from upstream' while using nginx proxy #458
Comments
@deities-online it's hard to tell just from this log; could you perhaps share more details? In particular versions of tide, async-h1, async-std, and http-types would be relevant to know. You can find these in your Cargo.lock file. Thanks! |
@yoshuawuyts Sorry, forgot provide version information. I was using master brach of tide. compile env has been overwrite. I reproduce this issue today: execute commands: os is Centos 7, nginx version refer to first image. and the Cargo.lock file is: If any information need, please let me know. |
@deities-online Here's what we believe is the fix: |
@jbr It works, Thanks! It would be better to add some warning info in log. |
@deities-online Good point about logging. Added #470 to reflect that need and closing this as resolved |
I got a strange error while proxy from nginx to tide server.
steps:
curl http://127.0.0.1:10086/test/code
, everything is fine. and trace log of my app is:curl https://my.host.com/test/code
,502 Bad Gateway get returned. error log in /var/log/nginx/error.log isupstream prematurely closed connection while reading response header from upstream
and trace log of my app is:
After change to using actix-web as server, both
curl http://127.0.0.1:10086/test/code
andcurl https://my.host.com/test/code
works fine.Is this an issue of tide or http-service-1?
The text was updated successfully, but these errors were encountered: