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

Add additional detail around 403s from Qualifications API #459

Merged
merged 1 commit into from
Dec 5, 2023

Conversation

malcolmbaig
Copy link
Contributor

@malcolmbaig malcolmbaig commented Dec 5, 2023

Context

We haven't been handling 403 errors from the API, and are starting to see quite a few in production. It isn't currently clear what's causing these errors.

Changes proposed in this pull request

This commit adds a local Sentry scope that extracts various pieces of information about the Identity session and sends it to Sentry whenever this error occurs. This should help us with debugging the issue.

Guidance to review

I've tested this by setting the Sentry DSN in local dev and manually triggering the QualificationsApi::ForbiddenError.

This results in the Sentry issue being tagged with the user id and the following section appearing further down:

Screenshot_20231205_134806

@gunndabad fyi ^

Link to Trello card

https://trello.com/c/yFP3gVsr

Checklist

  • Attach to Trello card
  • Rebased main
  • Cleaned commit history
  • Tested by running locally

@malcolmbaig malcolmbaig requested review from gpeng, felixclack and steventux and removed request for gpeng December 5, 2023 13:49
We haven't been handling 403 errors from the API, and are starting to
see quite a few in production. It isn't currently clear what's causing
these errors.

This commit adds a local Sentry scope that extracts various pieces of
information about the Identity session and sends it to Sentry whenever
this error occurs. This should help us with debugging the issue.
@malcolmbaig malcolmbaig force-pushed the 1388-fix-quals-403-handling--2 branch from 19d4f8d to b63bf1b Compare December 5, 2023 13:54
@malcolmbaig malcolmbaig merged commit 09f529f into main Dec 5, 2023
12 checks passed
@malcolmbaig malcolmbaig deleted the 1388-fix-quals-403-handling--2 branch December 5, 2023 15:15
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.

3 participants