Skip to content

Fix 500 error when displaying IDV session error#7073

Merged
mitchellhenke merged 1 commit intomainfrom
mitchellhenke/idv-500-error
Oct 3, 2022
Merged

Fix 500 error when displaying IDV session error#7073
mitchellhenke merged 1 commit intomainfrom
mitchellhenke/idv-500-error

Conversation

@mitchellhenke
Copy link
Contributor

🛠 Summary of changes

Came across a 500 in NewRelic caused by user_session being nil. I'm not 100% sure this is the best way to fix it, but it is a way.

@mitchellhenke mitchellhenke requested a review from aduth October 3, 2022 14:34
changelog: Bug Fixes, Identity Verification, Fix 500 error when displaying session error
@mitchellhenke mitchellhenke force-pushed the mitchellhenke/idv-500-error branch from 55c48fb to f4b6779 Compare October 3, 2022 14:43
Copy link
Contributor

@aduth aduth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The controller itself does appear to be set up to handle a hybrid flow user (source), so I can see how it might be technically possible for user_session to be nil. However, all of the flows that I would expect to redirect to this page wouldn't occur as part of document capture, so I'm not sure how they'd actually get here. That being said, I think it makes sense to accommodate the technical possibility of a hybrid user here and the handling of it in the condition is what I'd expect 👍

@mitchellhenke mitchellhenke merged commit 6d27cb4 into main Oct 3, 2022
@mitchellhenke mitchellhenke deleted the mitchellhenke/idv-500-error branch October 3, 2022 16:05
jskinne3 pushed a commit that referenced this pull request Oct 12, 2022
changelog: Bug Fixes, Identity Verification, Fix 500 error when displaying session error
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.

2 participants