Skip to content

Conversation

@malwilley
Copy link
Member

Fixes #105112
Fixes SENTRY-4BW1 (https://sentry.sentry.io/issues/6793528579/)

This can be reproduced by uninstalling a sentry app and then loading the alerts UI immediately afterwards. The old installation IDs for the organization remain in the cache, which causes an exception to be raised when the installation does not exist (in the available-actions endpoint). This adds more graceful handling for that case. The downstream prepare_sentry_app_components() already returns None is certain cases, so it shouldn't cause any issues.

It probably makes sense to invalidate the cache when installing/uninstalling, but this is a simple fix that will prevent the error for now.

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Dec 18, 2025
@malwilley malwilley marked this pull request as ready for review December 19, 2025 17:05
@malwilley malwilley requested review from a team as code owners December 19, 2025 17:05
@malwilley malwilley requested a review from a team December 19, 2025 17:05
@malwilley malwilley enabled auto-merge (squash) January 5, 2026 17:10
@malwilley malwilley merged commit 926fd81 into master Jan 5, 2026
65 checks passed
@malwilley malwilley deleted the malwilley/fix/fix-broken-available-actions-endpoint-when-an-installation-is-deleted branch January 5, 2026 17:31
cathteng pushed a commit that referenced this pull request Jan 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Getting a 500 error on https://us.sentry.io/api/0/organizations/pocus/alert-rules/available-actions/

3 participants