-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
com.twitter.finagle.Http not work #955
Comments
After a little playing around, realised something fishy has to be going on with ... going to try to find a minimal build file to reproduce |
Here is a minimal build file that reproduces the error ... I've put comments in the build file to show that if you comment/uncomment certain lines the issue goes away https://github.com/samthebest/reproducing-finagle-bug/tree/master So in this project you can do:
then paste in
|
Just send the hostname in the request for comply with the expected HTTP protocol with something like:
Finagle does not send any explicit HTTP host headers for covering more possible corner cases requests ... but just add a call to Additionally is recommended to pass the |
Describe the bug
I try to call a simple endpoint, which I can do easily in another library and using
curl
, but with finagle http I get:As stated I know the server is available because I can hit it using other libraries, or
curl
.To Reproduce
Expected behavior
It behaves like any other library or
curl
, i.e. hits the endpoint and returns a response.Also I don't understand why we need to specify the host 3 times (twice to create the service, once in the URI)
The text was updated successfully, but these errors were encountered: