Skip to content

Commit 0519956

Browse files
authored
chore(derived_code_mappings): Do not report these errors (#44683)
Fixes [SENTRY-Z1N](https://sentry.sentry.io/issues/3939446058)
1 parent 9691178 commit 0519956

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/sentry/tasks/derive_code_mappings.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,17 @@ def derive_code_mappings(
9090
logger.warning("The org has uninstalled the Sentry App.", extra=extra)
9191
return
9292

93+
if msg == "This installation has been suspended":
94+
logger.warning("The org has suspended the Sentry App.", extra=extra)
95+
return
96+
97+
if msg.startswith("Although you appear to have the correct authorization credentials"):
98+
# Although you appear to have the correct authorization credentials, the
99+
# <github_org_here> organization has an IP allow list enabled, and
100+
# <ip_address_here> is not permitted to access this resource.
101+
logger.warning("The org has suspended the Sentry App. See code comment.", extra=extra)
102+
return
103+
93104
# Logging the exception and returning is better than re-raising the error
94105
# Otherwise, API errors would not group them since the HTTPError in the stack
95106
# has unique URLs, thus, separating the errors

0 commit comments

Comments
 (0)