-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[$250] Bank Account - Onfido page returns an error when go online #49572
Comments
Triggered auto assignment to @jliexpensify ( |
@jliexpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
Job added to Upwork: https://www.upwork.com/jobs/~021838061398162430239 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @hoangzinh ( |
Able to reproduce, @IuliiaHerets can you confirm if this happens on iOS as well? |
Hi, I’m Nicolay from Callstack and I would like to investigate this issue. |
📣 @hoangzinh 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
All yours @narefyev91 |
@jliexpensify @hoangzinh what i was able to find during investigation: After disabling/enabling internet - we have initial API call to grab all available information (which were stored before) - That's why user got redirected to the personal screen - instead of continue working with onfido - there is no token provided Screen.Recording.2024-09-24.at.17.14.00.movBased on all these information - we should try to fix 2 issues:
Let me know wdyt guys. Thanks! |
@joekaufmanexpensify dropping you into this bug GH as I think you worked on Onfido for ND? Do you mind sharing your thoughts on the above comment? |
Some more finding here: To make is working we need to return onfidoSdk instance and work with it - like this: Also interesting thing that in 14.15.0 (current version) there is other method to terminate onfido sdk But it was not fixed the issue with error pop-up. But it gives correct flow to remove dead sdk thread.
Again probably that's correct behaviour from Onfido - because if some resources are lost - they could not guaranteed that their product will work correctly. |
I did not really work on implementing Onfido in NewDot, so don't have any specialized knowledge here really. But happy to take a look! |
Yeah, Onfido is an online-only operation. It's expected that it doesn't work offline and uses pattern D. In an ideal world, I think it'd be nice to be able to land where you where in the Onfido flow if you go offline during it. But given it is an online operation with a third party service, I don't think it's a big deal if you need to restart it too. I expect the user would be understanding of that. If we can easily drop you where you were in the flow though after reconnecting to the internet, that sounds solid. |
Unassigning as this doesn't need two BZs, but LMK if there any other Q's I can help with! |
Yeah - fully agree! To move back to existing flow we just need to have onfido token and we can achieve that by:
|
I tried to add FE fix - was able to get to onfido flow directly after move back to online, but still onfido throws error after unmount - and this part of code executed: Again - seems like this issue should be fixed on BE side. @hoangzinh could you please take a look on the discussion and maybe also suggest/make decision where we should try to fix that flow.
|
sure @narefyev91, I will focus on this issue today. was busy on PRs |
@narefyev91 Thanks for thorough investigation here. In my opinion, we should remove |
@hoangzinh yeah totally agree - and also needs to remove from |
ah yes, agreed with that. Let me quickly links what we investigated so far
Do you agree @narefyev91 ^, or you have anything else to add before we proceed with an internal engineer? Thank you. |
Yeah thanks for the summary! Agree with everything here |
Thanks @narefyev91. Let's find an internal engineer to review our investigation. 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @flodnv, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
It seems to me like your proposal to fix this in the backend makes sense. @nkuoch can you take a look please? I see you recently modified this here: https://github.com/Expensify/Web-Expensify/commit/e787298b1da0f3192cc3333d40414755ca606c8e |
@nkuoch - just a heads up I'm OOO from 3rd to 14th, but I don't think anything is needed from me during this period. Feel free to reassign to another B0 if needed, otherwise I will review this when I get back re: payments. |
Creating back end fix to not sent |
Hi @nkuoch, just to be safe, will https://github.com/Expensify/Web-Expensify/pull/43732 cause any DB if the FE is not ready yet? |
Can you elaborate? |
At the moment, when the user completes Personal info and goes to the Onfido screen, the App will call APIs |
I believe OpenReimbursementAccountPage is only called when reloading? When user completes personal info, OnfidoToken gets set with a string. If user refreshes the page or reconnects because they got disconnected on this step, OpenReimbursementAccountPage would be called and not touch OnfidoToken (and I rely on |
@nkuoch Ah, you're right. |
@nkuoch @hoangzinh @narefyev91 @jliexpensify this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
Not overdue. @nkuoch is working on the BE fix here #49572 (comment) |
BE fix has been deployed FYI |
Thanks @nkuoch. It appears that the issue has been fixed with the BE fix above. Screen.Recording.2024-10-07.at.22.02.10.mov |
Cool then we can close |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: v9.0.39-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/cases/view/2950430
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Action Performed:
Precondition: workspace with enabled workflows. Started and followed the flow for adding a Verifying bank account using the credentials found below until you reach the Onfido screen:
Use Regions bank
Username: user_good | Password: pass_good
Account type: Plaid Saving (2nd option)
CompanyName: Expensify
CompanyTaxID: 123456789
First Name: First
Last Name: Last
Expected Result:
Onfido screen open and user can proceed the flow.
Actual Result:
An error appears. User is navigated back to Personal info page
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6610008_1726844385925.bandicam_2024-09-20_17-51-50-039.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @hoangzinhThe text was updated successfully, but these errors were encountered: