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

Discard notifications when not registered to prevent crash #3784

Conversation

jpelgrom
Copy link
Member

Summary

Fix crash 1 from #3708 (link to line for version in issue). IllegalArgumentException suggests the server for the ID doesn't exist, which can only happen if a notification is received while not registered (as it already falls back to the default server if there is no server found for the webhook ID). As a lot of features depend on having a server for notifications discard them.

I guess people are sending notifications after logging out? (Note that the notification data is still saved to the database so not completely lost and available for troubleshooting if required.)

Screenshots

n/a

Link to pull request in Documentation repository

n/a

Any other notes

@JBassett JBassett enabled auto-merge (squash) August 11, 2023 19:09
@JBassett JBassett merged commit 01326db into home-assistant:master Aug 11, 2023
4 checks passed
@jpelgrom jpelgrom deleted the discard-notifications-when-not-registered branch August 11, 2023 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants