Skip to content

[$500] - Chat Room - Handle API response inVBA flow when tapping finish Set up #7185

Closed

Description

@kbecciv

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:

  1. Go to https://staging.new.expensify.com
  2. Log in with expensifail account
  3. Find any room in LHN
  4. Tap on plus button and tap Send Money
  5. Select amount and user
  6. Tap Pay with Expensify
  7. Tap Add Bank Account
  8. Put Wells Fargo credentials
  9. Select Saving Account
  10. Put Password and Tap Finish Set up

Expected Result:

If the API request fails, we handle that and show the error to the user.

Actual Result:

Unable procced with VBA flow after put password and tap finish Set up. No error shown.

Workaround:

Unknown

Platform:

Where is this issue occurring?

  • Mobile Web

Version Number: 1.1.29.1

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

Bug5404886_Screen_Recording_20220112-144533_Chrome.mp4

Slack conversation:

View all open jobs on GitHub

Activity

  1. MelvinBot commented on Jan 12, 2022

    @MelvinBot
    Contributor

    Triggered auto assignment to @francoisl (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

  2. francoisl commented on Jan 13, 2022

    @francoisl
    Contributor

    I can't reproduce on dev, neither on the latest version of main nor on 1.1.29-1 specifically; I get to the identity verification step each time.

    I could only test mweb on iOS though, for some reason I can't get anything to work with Android at the moment. Going to put this back in the pool and hopefully someone can chime in if they can reproduce.

    Screen.Recording.2022-01-12.at.5.25.24.PM.mov

    Not sure if it can be marked as an external issue until we can reproduce though.

  3. removed their assignment
    on Jan 13, 2022
  4. aldo-expensify commented on Jan 31, 2022

    @aldo-expensify
    Contributor

    I see something like this happening if you try to add a bank account that you already have. We get an error from the backend and we don't do anything we it, no feedback for the user. My steps:

    1. Create account
    2. Go to Old Dot
    3. Add Open VBA using the SO (maybe this can be done in NewDot and the same should happen)
    4. Go to NewDot
    5. Navigate to Settings > Payments
    6. Click Transfer Balance and then Bank account, it takes me to add a new bank account 🤷
    7. Try to add bank account using same credentials as before
    8. Fail, no feedback in the UI
    Screen.Recording.2022-01-31.at.12.00.42.PM.mov
  5. aldo-expensify commented on Jan 31, 2022

    @aldo-expensify
    Contributor

    At least for the case I mentioned above, we are not doing anything with the error here:

    .then((response) => {
    if (response.jsonCode === 200) {
    PaymentMethods.getPaymentMethods()
    .then(() => {
    PaymentMethods.continueSetup();
    Onyx.merge(ONYXKEYS.REIMBURSEMENT_ACCOUNT, {loading: false});
    });
    return;
    }
    if (response.message === 'Incorrect Expensify password entered') {
    ReimbursementAccount.setBankAccountFormValidationErrors({password: true});
    }
    Onyx.merge(ONYXKEYS.REIMBURSEMENT_ACCOUNT, {loading: false});
    })

    I'll label this as External as it seems just related to doing something in the front with the error that comes from the backend.

  6. added
    ExternalAdded to denote the issue can be worked on by a contributor
    on Jan 31, 2022
  7. MelvinBot commented on Jan 31, 2022

    @MelvinBot
    Contributor

    Triggered auto assignment to @puneetlath (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

  8. aldo-expensify commented on Jan 31, 2022

    @aldo-expensify
    Contributor

    @kbecciv to confirm if it is related to what I found, can you replicate the problem and look in the network tab of chrome dev tools and see if you are getting an error in the response of the request sent to the URL: .../api?command=BankAccount_Create

    image

  9. changed the title [-]Chat Room - Send Money - Unable procced with VBA flow after put password and tap finish Set up[/-] [+]Chat Room - Handle API response inVBA flow when tapping finish Set up[/+] on Jan 31, 2022
  10. puneetlath commented on Jan 31, 2022

    @puneetlath
    Contributor

    Upwork job for handling the API response is here: https://www.upwork.com/jobs/~0151453e9454631fab

  11. 152 remaining items

  12. chiragsalian commented on Sep 30, 2022

    @chiragsalian
    Contributor

    Waiting for an update by rajat when he gets the chance.

  13. mvtglobally commented on Oct 3, 2022

    @mvtglobally

    Issue not reproducible during KI retests. (First week)

  14. parasharrajat commented on Oct 6, 2022

    @parasharrajat
    Member

    Due to the implementation of Open API and the unavailability of documentation, I am not sure how should I handle this case.

    Technically, already existing bank account detection was fixed on the backend after I pointed it out and error handling was changed on the front.

    @chiragsalian what do you suggest I should do next? Could you please update the OP for new behaviour?

    Otherwise, I feel like there is no action left for me here. I will close the PR.

  15. chiragsalian commented on Oct 6, 2022

    @chiragsalian
    Contributor

    Hmm im not sure where we currently stand since so many APIs have changed lately. I'll retest this today and decide on the next steps.

  16. chiragsalian commented on Oct 6, 2022

    @chiragsalian
    Contributor

    I just retested. Looks like the error is now received appropriately in the onyxData. This means there is a proper error message when the same back account is selected.
    image

    Hence I don't think there is anything to be done here. Maybe in the future, we can clear up how the error message is shown but the original issue mentioned in this GH is resolved so closing it out.

  17. parasharrajat commented on Oct 7, 2022

    @parasharrajat
    Member

    Thanks, Chirag. @Christinadobrzyn Could you please take care of the payment for this? Original job posting where contract is live https://www.upwork.com/jobs/Handle-API-response-inVBA-flow-when-tapping-finish-Set-7185-Expensify_~01c21d7847d9c14366

  18. parasharrajat commented on Oct 16, 2022

    @parasharrajat
    Member

    Bump @Christinadobrzyn ⬆️

  19. parasharrajat commented on Oct 19, 2022

    @parasharrajat
    Member

    @Christinadobrzyn Any update for me?

  20. chiragsalian commented on Oct 19, 2022

    @chiragsalian
    Contributor

    Hi @Expensify/contributor-management, can someone help out with the payment here?

  21. puneetlath commented on Oct 20, 2022

    @puneetlath
    Contributor

    Paid it @parasharrajat. Just to confirm, there was no C+ on this?

  22. parasharrajat commented on Oct 20, 2022

    @parasharrajat
    Member

    Yeah, no C+. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

EngineeringExternalAdded to denote the issue can be worked on by a contributorWeeklyKSv2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions