Closed ccostino closed 5 months ago
I think this is no longer occurring.
Back in march, the sign in code was optimistic. We assumed that, if given an email_address and a login.gov uuid, we could look up the user in the database. Or if the user wasn't there, they query would return a null result set in some well-behaved way.
But if you look at a similar method in user_api_client (get_user_by_email_or_none) we should have explicitly accounted for an HTTPError if we tried to look up something that didn't exist.
We are now accounting for, in a slightly different way. The backend does a try/except and returns None, and if the front end gets None, it does an abort(401). So there should be no stack trace for this, and it should not be reproducible.
Sounds good! Closing (pairing with @ccostino :-) )
This is one of the errors we've seen captured in New Relic that we'd like to dig into and understand, if not also resolve.
This one appears to be related to a Login.gov sign-in attempt failure because this was also captured as a part of the transaction:
API POST request on https://notify-api-production.apps.internal:61443/user/get-login-gov-user failed with 500 'Internal server error'
Error message: 500 - Internal server error Path: /sign-in Exception: notifications_python_client.errors:HTTPError
Implementation Sketch and Acceptance Criteria
Security Considerations