-
-
Notifications
You must be signed in to change notification settings - Fork 809
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
Prevent HttpConsumer from hiding exceptions #1951
Conversation
FYI @alexmclarty - if you recall, we spotted this issue whilst pairing (on top of the original one we were debugging). |
@@ -81,7 +81,7 @@ async def http_request(self, message): | |||
await self.handle(b"".join(self.body)) | |||
finally: | |||
await self.disconnect() | |||
raise StopConsumer() | |||
raise StopConsumer() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what a difference an indentation level makes 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💝 — This may be the root of one I've been meaning to sit down with for an age.
I shall take a proper look later one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So there may be failing HTTP consumers in production apps where the exceptions aren’t being logged.
Yes, that was the reported issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Little dance 🕺
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🪩🕺
Thanks for fixing this well hidden bug! 👍 |
I'm planning new releases for the new year. This is on the roadmap for that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great. Thank you.
(Good job I didn't say which new year. 😳)
Hehe no worries, thanks for merging. |
Fixes #1950.
The issue didn’t only affect tests—exceptions were always swallowed by converting them into
StopConsumer()
. So there may be failing HTTP consumers in production apps where the exceptions aren’t being logged.