Skip to content
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

Fix crash from exceptions in handlers #771

Merged
merged 3 commits into from
Jun 5, 2023

Conversation

justinbot
Copy link
Contributor

Fixes the whole application crashing when an exception happens in a handler.
Typically this was failing to send a message due to lacking permissions.

This seems like it may have regressed in #754 due to changes wrapping in Sentry.withScope, which has this caveat:

Any exceptions that occur within the callback function for withScope will not be caught, and all errors that occur will be silently ignored and not reported.

Fixes #769

@justinbot justinbot self-assigned this Jun 5, 2023
@justinbot justinbot requested a review from a team as a code owner June 5, 2023 15:55
@justinbot justinbot added this pull request to the merge queue Jun 5, 2023
Merged via the queue into main with commit 96c398c Jun 5, 2023
@justinbot justinbot deleted the justinbot/fix-crash-on-sending-message branch June 5, 2023 16:30
SpiritCroc added a commit to SpiritCroc/matrix-hookshot that referenced this pull request Jun 6, 2023
 4.2.0 (2023-06-05)
===================

Features
--------

- Add support for uploading bot avatar images. ([\matrix-org#767](matrix-org#767))

Bugfixes
--------

- Fix confusing case where issue comments would be notified on if the issue event type is checked on GitHub connections. ([\matrix-org#757](matrix-org#757))
- Fix crash when failing to handle events, typically due to lacking permissions to send messages in a room. ([\matrix-org#771](matrix-org#771))

Conflicts:
	src/Connections/FeedConnection.ts
	src/feeds/parser.rs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failing to send a message leads to a crash
2 participants