-
Notifications
You must be signed in to change notification settings - Fork 89
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
Unrecoverable error: closed #456
Comments
Downgrading to |
Are you able to deploy the branch at #453 and grab a trace based on the instructions therein? |
Let me confer with my team. I'd prefer not to be handing errors to my clients in prod, but if it's load-related, I'm not sure I could reproduce on staging |
I'm on version
|
We noticed these errors originally on |
If anyone is able to run the branch I linked to above and report back with dumps, that would greatly help with trying to resolve this (these?) issues |
@mtrudel I'm going to try to run that on one server out of our prod fleet tomorrow. I'll do my best to report back findings |
In any of these cases, could someone please provide a complete exception output, including the message text? |
|
We are also seeing a lot of these errors show up in Sentry. We are running bandit
|
There are actually two distinct issues happening here. The First ErrorThe first, as reported by @andyleclair & @andykent, is increased visibility of legitimate client terminations (ie: those are actual client-side shutdowns). Bandit changed how these errors are plumbed in
The reason we do things this way is to mimic the behaviour of Cowboy in this regard (the semantics of Plug derive more or less directly from Cowboy, so we're a little underspecified). Cowboy realizes this behaviour by virtue of having multiple processes per connection which allows the backing connection to immediately kill the plug process in this case. Bandit's single-process model needs to resort to bubble-based cleverness to realize the same outcome. What I believe is happening here is that your Sentry setup is seeing those errors as they bubble up through your Plug code (between steps 3 and 4 above). To be clear, this flow is the expected way for Bandit to handle these error cases; the issue here is that your Sentry setup sees those errors and reports on them as they bubble past it. Do you have your Sentry config set up to ignore The Second ErrorThis is the error seen by @Tricote and @c4710n. In this case, you have a (presumably legitimate) error (likely a client closure) that is bubbling out to |
Closing for hygiene; doesn't look like there's anything to do for this on Bandit itself. Thanks for the great discussion! If any other (or even this) issue comes up again, please feel free to (re)open an issue! |
@mtrudel thank you so much for the thorough investigation! |
Hi!
We upgraded Bandit from
1.5.7
to1.6.4
and started seeing a nonzero number of newBandit.TransportError
It's a small percentage, but it seems like a regression. Happy to provide as much context as I can!
Stacktrace:

The text was updated successfully, but these errors were encountered: