Multiple errors getting printed when a single error occurs. #3907
-
Hello everyone, Just wanted to know if anyone knows a way to disable this behaviour? I'm not completely sure whether this is a bug.
Same also happens when I return any errors by passing it to Err(). I'm thinking it might have something to do with tokio? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Are you certain there's no other connections or requests? hyper isn't doing anything extra here, it just calls your service function when a request is received. |
Beta Was this translation helpful? Give feedback.
-
Probably not directly related to the discussion but: the only way to resolve this is probably by responding with an error page instead of just Err()'ing. Unfortunately this isn't possible in my scenario due to the fact that I make a HTTP request to an external server and send the resulting The only theoretical solution I've come up with so far is by using/consuming the body, headers and what not to manually re-construct a |
Beta Was this translation helpful? Give feedback.
Are you certain there's no other connections or requests? hyper isn't doing anything extra here, it just calls your service function when a request is received.