Skip to content

[Copy update] VBA Throttled error #5551

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

Merged
merged 2 commits into from
Oct 5, 2021
Merged

Conversation

aldo-expensify
Copy link
Contributor

@aldo-expensify aldo-expensify commented Sep 28, 2021

Details

Removed if statement here because I think it is always true

const throttledEnd = moment().add(24, 'hours');
if (moment() < throttledEnd) {

Fixed Issues

$ https://github.com/Expensify/Expensify/issues/177017

Tests / QA

  1. Create an account in OldDot and verify it.
  2. In OldDot, while logged in, open the console in chrome developers tools and enter: API.setNameValuePair({name: 'expensify_ACHData_throttled', value: 'yes'}) Screen Shot 2021-10-04 at 11 50 57 AM
  3. Go to NewDot, log in
  4. Create a workspace and start the VBA flow
  5. You should see the error:

Screen Shot 2021-10-04 at 11 52 22 AM

Tested On

  • Web
  • Mobile Web
  • Desktop
  • iOS
  • Android

Screenshots

Web

Mobile Web

Desktop

iOS

Android

@aldo-expensify
Copy link
Contributor Author

Update: removed unused import

@aldo-expensify aldo-expensify self-assigned this Sep 28, 2021
@aldo-expensify
Copy link
Contributor Author

About how to reproduce the throttle error

There were two slack conversations about this:

https://expensify.slack.com/archives/C020EPP9B9A/p1632955388190500
https://expensify.slack.com/archives/C6PHQ660K/p1633030710387500

As a summary, I understand the following:

  • The throttle can happen when we get one of these two errors when verifying a bank account agains Giact.
  • We call Giact_API::verifyWithdrawalAccount from here to verify a bank account against their API.
  • We handle a verification error here

My plan was to find a bank account that would fail with BANK_ACCOUNT_NOT_GOOD_STANDING, but I could not move forward because the connection with Giact doesn't seem to be working. https://expensify.slack.com/archives/C03TQ48KC/p1633040741101300

@aldo-expensify aldo-expensify changed the title Update add VBA throttled error with new copy [Copy update] VBA Throttled error Oct 1, 2021
@kevinksullivan
Copy link
Contributor

@marcaaron I recall you finding this error here. This may be of help @aldo-expensify ? Ultimately I think if we cover the other cases, we can safely deprioiritze this case and put it in a follow up issue to ensure we're staying on top of more common/valuable polish.

@marcaaron
Copy link
Contributor

Feels like we are maybe getting sidetracked with trying to do a local reproduction. We can just set the NVP manually so we can test the copy? Just my 2 cents but I don't think it's necessary to fully reproduce a throttled bank account on dev (pretty sure that when I saw that copy I forced it to appear and did not mess with KYC checks at all).

@aldo-expensify
Copy link
Contributor Author

NVP

Makes sense, I'll try that. Thanks!

@aldo-expensify
Copy link
Contributor Author

@marcaaron idea to use NVP worked perfectly fine. Added it to the Test / QA steps.

@aldo-expensify aldo-expensify marked this pull request as ready for review October 4, 2021 18:54
@aldo-expensify aldo-expensify requested a review from a team as a code owner October 4, 2021 18:54
@MelvinBot MelvinBot requested review from Dal-Papa and removed request for a team October 4, 2021 18:54
@Dal-Papa Dal-Papa merged commit d3f2934 into main Oct 5, 2021
@Dal-Papa Dal-Papa deleted the aldo_vba-update-throttled-error branch October 5, 2021 08:20
@OSBotify
Copy link
Contributor

OSBotify commented Oct 5, 2021

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

@OSBotify
Copy link
Contributor

OSBotify commented Oct 6, 2021

🚀 Deployed to staging by @Dal-Papa in version: 1.1.5-2 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

@OSBotify
Copy link
Contributor

OSBotify commented Oct 7, 2021

🚀 Deployed to production by @chiragsalian in version: 1.1.6-0 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

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.

5 participants