Expense - Second expense shows error when submitting two expenses to workspace chat
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: 9.0.30-15 Reproducible in staging?: Yes Reproducible in production?: No Issue reported by: Applause Internal Team
Action Performed:
- Go to staging.new.expensify.com
- Log in with a new Gmail account.
- On Onboarding flow, choose "Something else" and complete the flow (Important).
- Create a new workspace.
- Go to workspace chat.
- Submit two expenses from the main chat.
- Click on the expense preview.
Expected Result:
Describe what you think should've happened
Actual Result:
The second expense throws unexpected error. After dismissing the error for the second expense, the expense remains but the composer is hidden in the transaction thread.
Workaround:
Unknown
Platforms:
- [x] Android: Native
- [x] Android: mWeb Chrome
- [x] iOS: Native
- [x] iOS: mWeb Safari
- [x] MacOS: Chrome / Safari
- [x] MacOS: Desktop
Screenshots/Videos
https://github.com/user-attachments/assets/e648fb44-8f5f-45ad-9e87-4116f93bac87
Triggered auto assignment to @VictoriaExpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.
@IuliiaHerets I was able to reproduce the issue as described. However, I’m not sure if the video included in the OP is directly related to the issue.
@Shahidullah-Muffakir Sorry, I attached the wrong video, fixed it now
Triggered auto assignment to @madmax330 (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.
:wave: Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
- Identify the pull request that introduced this issue and revert it.
- Find someone who can quickly fix the issue.
- Fix the issue yourself.
Not and app blocker, this works when you use staging app and production be
production App and Web: https://github.com/user-attachments/assets/071f83ee-3033-4086-bd26-035dcf9afc61
Staging App and production Web:
https://github.com/user-attachments/assets/2fb6d67a-a328-4021-94a1-92f2b07cdd5c
This is the failing issue in the BE, logs:
TransactionAPI - Error thrown in requestMoney TypeError - 7efcf0a28c9b01b8efd428250568042b ~~ iouReportID: '5748743523017947' chatReportID: '2345769329381682' transactionID: '6296389466609649841' exceptionMessage: 'Report_Action_Collection::buildAction(): Argument #1 ($actionArray) must be of type array, int given, called in /git/releases/expensify.com/2accc07/lib/TransactionUtils.php on line 1237' exceptionFile: '/git/releases/expensify.com/2accc07/lib/Report/Action/Collection.php' exceptionLine: '13' exceptionCode: '0'
This was fixed by https://github.com/Expensify/Web-Expensify/pull/43429 and tested by @madmax330 in staging