-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
mWeb - Error message displayed when trying to upload document on onfido flow and user is redirected to Company step #6085
Comments
Triggered auto assignment to @jasperhuangg ( |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open
|
@jasperhuangg Did you mean to close this? |
I'm assuming that was a mistake because this was closed without a comment or PR, reopening. |
@jasperhuangg @roryabraham Adding video for the above bug. 20211027_183524.mp4 |
@kavimuru Can you confirm the account(s) you used to test this? kavi.utest+chatd@gmail.com ? |
Logs don't appear to reveal much 😕 :
|
Looks like there isn't enough information to go off of to debug this. To summarize, the growl is how we handle an error returned by the Onfido API. Here's how that error is shaped (taken from the Onfido SDK npm package) export declare type SdkError = {
type: "exception" | "expired_token";
message: string;
}; We only log the @roryabraham Is there any chance we can deploy something that changes the log to include the |
I assume yes, but have we confirmed that this issue is not present on production? |
Not yet, only verified on staging, on that right now. |
Of course, this is possible.
What PR? |
We were unable to reproduce this issue in production on our side. |
@roryabraham Right sorry, forgot we don't know where this is coming from. Just tested it myself on production and didn't run into it, so it looks like this is a regression. I'll start scanning through any relevant App PRs. |
One thing that's worth noting is that E/App staging points at the production Web-E API, but at the staging Web-S API. So the regression could have been caused in https://github.com/Expensify/Web-Secure |
I'm far from certain, but this PR seems like a potential suspect to me. |
@roryabraham After some investigation I think the error should be self-contained within the Onfido API, I don't think this part of the flow touches Web-S. Especially since switching between staging/prod for NewDot fixes the issue. As for https://github.com/Expensify/App/pull/5975/files, it looks like the functions that were changed are only called within the I think we should deploy #6091 and get more information first. |
Also unrelated but this deploy blocker isn't showing up in my K2 |
Ah, after some poking around @roryabraham and I figured out that it's actually the browser blocking the request to upload the ID picture to this endpoint. If you're wondering why I have a screenshot of the Network tab from the Desktop version of Chrome (even though this is a mobile web issue): Onfido only allows us to upload documents from a mobile client. However Onfido doesn't actually check the user-agent–their JS just checks the screen size–meaning we can reproduce this on any browser. @justinpersaud Looks like this has to do with the CSP we've enabled for staging. Do you think it's safe to get rid of this deploy blocker? |
Let's fix the CSP issue, retest, then remove the blocker? |
More details on the CSP errors:
|
Let's fix it instead of just pushing to production. CSP was never enabled in production yet, and is on hold right now. It can be updated here https://github.com/Expensify/Cloudflare-Workers/blob/master/new.expensify.com/wrangler.toml#L12 |
Got a PR up to hopefully fix this: https://github.com/Expensify/Cloudflare-Workers/pull/15 It's approved, but we need it to be merged and deployed by ring0 before we can retest. |
Reopening for testing |
Verified this is fixed, closing this out 🎉 |
Thanks @roryabraham !! 🙇♂️ |
I think this was from Jasper testing this before the fix was out right? https://github.com/Expensify/Expensify/issues/182916 |
Yep, looks like it |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
Picture should be uploaded and then scanned by onfido
Actual Result:
There's an error just as the image is uploaded. User is redirected back to company step.
Workaround:
None found. Onfido is blocked on mWeb.
Platform:
Where is this issue occurring?
Version Number: 1.1.10-0
Reproducible in staging?: Yes
Reproducible in production?: No
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Expensify/Expensify Issue URL:
Issue reported by: Applause
Slack conversation:
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: