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
Unhelpful timeout exception #3087
Comments
I was hoping to help out by providing a PR but i have a hard time to find all the pieces ... i think what needs to be done is to add information about IP address to Seems like this would be a good place to put that information in: https://github.com/http4s/http4s/blob/master/blaze-client/src/main/scala/org/http4s/client/blaze/Http1Support.scala#L64 ? |
So there is a bunch of exceptions in |
Yes, you could enhance the exceptions by pattern matching Lefts. It will be the same basic tradeoffs as on the other: using the standard Java exception vs. a richer wrapper, with some opportunities to extend the standard Java exceptions like we did in 0.20. |
Looked a bit closer. I think the timeout you're looking for is here. The |
Sure. The one thing I would like to achieve is to have inetaddres available
for timeouts as well. But it's going to be more difficult I think. Is it
possible to get upstream address from connection? Is it something you would
be ok with adding?
…On Tue, Jan 21, 2020, 17:23 Ross A. Baker ***@***.***> wrote:
Looked a bit closer. I think the timeout you're looking for is here
<https://github.com/http4s/http4s/blob/a97a153931e324a80a27e4b99129042272c81eac/blaze-client/src/main/scala/org/http4s/client/blaze/BlazeClient.scala#L152>.
The RequestKey should be in scope, and we can extend that message.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3087?email_source=notifications&email_token=AAAYMHTNKN5LZJIKZO2ESPTQ64ORLA5CNFSM4KJB3ML2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJQKZSY#issuecomment-576761035>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAYMHRDUBBXKRNDGFN2EGTQ64ORLANCNFSM4KJB3MLQ>
.
|
I decided to improve (imho) some logging that we encountered in the wild and would benefited from, hope it's ok |
fixed in #3089 |
Hello, i found another fairly unhelpful exception coming from http4s:
It would be great if we could add some context - like request that failed and maybe even IP address of the upstream that timeout out.
The text was updated successfully, but these errors were encountered: