Skip to content

fix(integrations): Handle forbidden errors in integration proxy#111123

Merged
chromy merged 1 commit intomasterfrom
chromy/fix/handle-forbidden-doesnotexist-proxy
Mar 19, 2026
Merged

fix(integrations): Handle forbidden errors in integration proxy#111123
chromy merged 1 commit intomasterfrom
chromy/fix/handle-forbidden-doesnotexist-proxy

Conversation

@chromy
Copy link
Contributor

@chromy chromy commented Mar 19, 2026

Add explicit handling for ApiForbiddenError in the integration proxy endpoint's
handle_exception_with_details method, following the same pattern established in
#111030 for ApiUnauthorized and ApiRateLimitedError.

Previously, ApiForbiddenError exceptions fell through to the unknown error handler,
which logs at warning level and delegates to the base class (returning 500). Now it
returns the correct 403 status with a dedicated forbidden_error failure metric type
and info-level logging.

Agent transcript: https://claudescope.sentry.dev/share/IV3nYCdnIAW35SRn4N0wnSGyQrw4sP8303Ea3PzRkjE

Add explicit handling for ApiForbiddenError exceptions in the
integration proxy endpoint, with a dedicated failure metric type and
logging.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Agent transcript: https://claudescope.sentry.dev/share/oNzq7eK2wMWD7OoHr5s1_AD3gu1MmOD6sXtqsRX5sTM
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Mar 19, 2026
@chromy chromy marked this pull request as ready for review March 19, 2026 19:56
@chromy chromy requested review from a team as code owners March 19, 2026 19:56
@chromy chromy merged commit 940230c into master Mar 19, 2026
57 of 58 checks passed
@chromy chromy deleted the chromy/fix/handle-forbidden-doesnotexist-proxy branch March 19, 2026 20:01
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.

2 participants