-
Notifications
You must be signed in to change notification settings - Fork 3k
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] Expensify card - Failed to send magic code error is shown when trying to issue card multiple times #57243
Comments
Triggered auto assignment to @OfstadC ( |
Job added to Upwork: https://www.upwork.com/jobs/~021892968947976081615 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @jayeshmangwani ( |
🚨 Edited by proposal-police: This proposal was edited at 2025-02-21 16:31:12 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Expensify card - Failed to send magic code error is shown when trying to issue card multiple times What is the root cause of that problem?When pressing issue card we open the validation code modal here
then we requestValidateCodeAction here when the modal opens App/src/components/ValidateCodeActionModal/index.tsx Lines 51 to 57 in b9c5fd3
But the problem is requestValidateCodeAction is a generic function that we use in many places to send RESEND_VALIDATE_CODE API request for the BE with no paramLine 563 in b9c5fd3
But the BE has its internal way of rejecting repeated RESEND_VALIDATE_CODE requests done in a short period of time. So even if the user is assigning cards to different users in a short period of time what the BE understands it is making repeated RESEND_VALIDATE_CODE requests in short period of time so it returns error
What changes do you think we should make in order to solve the problem?This is both BE and FE issue we still need to deny repeated What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N / A What alternative solutions did you explore? (Optional)BE solution can also be applied where this denying of repeated requests should be reset when a user makes a successful verification by entering a correct magic code. |
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.1.3-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Yes, reproducible on both
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): N/A
Issue reported by: Applause Internal Team
Device used: Redmi note 10s android 13
App Component: Other
Action Performed:
Expected Result:
Failed to send magic code error must not be shown when trying to issue card
Actual Result:
After issuing card 4 times, unable to issue card 5th time. Failed to send a new magic code error is shown when trying to issue card after 4 or 5 times
Workaround:
Unknown
Platforms:
Screenshots/Videos
bug.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @jayeshmangwaniThe text was updated successfully, but these errors were encountered: