You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[$1000] Web - Error occurs when user tries to split bill after starting a new chat with a new account #22076
Select the account you started a chat with and then add another one account and split the bill
Wait for a while until the error occurs
Expected Result:
No error should occur
Actual Result:
Error occurs and user is unable to split a bill
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Android / native
Android / Chrome
iOS / native
iOS / Safari
MacOS / Chrome / Safari
MacOS / Desktop
Version Number: 1.3.35-5 Reproducible in staging?: y Reproducible in production?: y If this was caught during regression testing, add the test name, ID and link from TestRail: Email or phone of affected tester (no customers): Logs:https://stackoverflow.com/c/expensify/questions/4856 Notes/Photos/Videos: Any additional supporting documentation
changed the title [-]Web - Error occurs when user tries to split bill after starting a new chat with a new account[/-][+][$1000] Web - Error occurs when user tries to split bill after starting a new chat with a new account[/+]on Jul 5, 2023
It seems backend side issue.
When split bill in this case, backend api returned error value.
Error message was from api returns.
So before make proposal, I need the confirmation from backend if this error message is normal case or not.
Anyone can give this confirmation?
Please re-state the problem that we are trying to solve in this issue.
Error occurs when user tries to split bill after starting a new chat with a new account
What is the root cause of that problem?
When split bill, calls SplitBillAndOpenReport api with split info(including accountID).
When split bill with new account, didn't find correct accountIDs of participants if there is not any reports from participants which are gonna split bill.
Called SplitBillAndOpenReport api with wrong accountIDs, then api returns error.
This wrong accountID was from Onyx
Where was from this wrong accountID?
Generates an optimistic account ID for new users not yet saved in Onyx
What changes do you think we should make in order to solve the problem?
When put the data to Onyx for personalDetails, must update to put correct accountID though they didn't establish connection before for accounts in room.
And if searched account is not in room, it should be handled in backend.
What alternative solutions did you explore? (Optional)
Backend can search with login and should send the split bill to that account if there is an account.
If there is not any account with login in DB, I think error is correct case.
@yuwenmemon@eVoloshchak@zanyrenney this issue is now 3 weeks old. There is one more week left before this issue breaks WAQ. What needs to happen to get a PR in review this week? Please create a thread in #expensify-open-source to discuss. Thanks!
Activity
melvin-bot commentedon Jul 2, 2023
Triggered auto assignment to @zanyrenney (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Jul 2, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)zanyrenney commentedon Jul 5, 2023
Similar / perhaps related issues: #19235
#20277
[-]Web - Error occurs when user tries to split bill after starting a new chat with a new account[/-][+][$1000] Web - Error occurs when user tries to split bill after starting a new chat with a new account[/+]melvin-bot commentedon Jul 5, 2023
Job added to Upwork: https://www.upwork.com/jobs/~010a8416f5812bffa0
melvin-bot commentedon Jul 5, 2023
Current assignee @zanyrenney is eligible for the External assigner, not assigning anyone new.
melvin-bot commentedon Jul 5, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eVoloshchak (
External)multijump commentedon Jul 5, 2023
It seems backend side issue.


When split bill in this case, backend api returned error value.
Error message was from api returns.
So before make proposal, I need the confirmation from backend if this error message is normal case or not.
Anyone can give this confirmation?
Thanks.
multijump commentedon Jul 5, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Error occurs when user tries to split bill after starting a new chat with a new account
What is the root cause of that problem?
When split bill, calls
SplitBillAndOpenReportapi with split info(including accountID).SplitBillAndOpenReportapi with wrong accountIDs, then api returns error.Generates an optimistic account ID for new users not yet saved in Onyx
App/src/libs/OptionsListUtils.js
Line 781 in e937c43
What changes do you think we should make in order to solve the problem?
When put the data to Onyx for
personalDetails, must update to put correct accountID though they didn't establish connection before for accounts in room.And if searched account is not in room, it should be handled in backend.
What alternative solutions did you explore? (Optional)
Backend can search with login and should send the split bill to that account if there is an account.
If there is not any account with login in DB, I think error is correct case.
23 remaining items
melvin-bot commentedon Jul 17, 2023
Triggered auto assignment to @yuwenmemon (
Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.zanyrenney commentedon Jul 17, 2023
Did not mean to add overdue label.
zanyrenney commentedon Jul 20, 2023
hey @yuwenmemon have you had the chance to take a look at this one yet? thanks!
melvin-bot commentedon Jul 23, 2023
@yuwenmemon @eVoloshchak @zanyrenney this issue is now 3 weeks old. There is one more week left before this issue breaks WAQ. What needs to happen to get a PR in review this week? Please create a thread in #expensify-open-source to discuss. Thanks!
zanyrenney commentedon Jul 24, 2023
DM'd @yuwenmemon !
yuwenmemon commentedon Jul 26, 2023
I'm unable to reproduce this anymore - closing!
Nathan-Mulugeta commentedon Jul 31, 2023
I was able to consistently reproduce this issue. I will attach a screen recording down below. Look at this slack conversation as well.
Cc: @chiragsalian @yuwenmemon @zanyrenney
2023-07-27_11_12_35.mp4