Skip to content
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

CRITICAL: [API Reliability] Workspace room does not load older messages due to infinite GetOlderActions calls #41254

Closed
1 of 6 tasks
m-natarajan opened this issue Apr 29, 2024 · 35 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Weekly KSv2

Comments

@m-natarajan
Copy link

m-natarajan commented Apr 29, 2024

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: 1.4.67-2
Reproducible in staging?: Needs reproduction
Reproducible in production?: Needs reproduction
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
Expensify/Expensify Issue URL:
Issue reported by: @shawnborton
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1714419709483439

Action Performed:

  1. Open new dot app
  2. Go to the workspace chat NewDot Test - Expensify US policy`

Expected Result:

The workspace chat should load all historical messages and requests

Actual Result:

The workspace chat is stuck looping through OpenReport over and over again. It will not load previous messages or requests, but it will load a recent receipt I uploaded today

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

CleanShot.2024-04-29.at.15.34.58.mp4

logs-2024-04-29 19_35_32.431.txt

Add any screenshot/video evidence

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @roryabraham
@m-natarajan m-natarajan added Daily KSv2 Needs Reproduction Reproducible steps needed Bug Something is broken. Auto assigns a BugZero manager. labels Apr 29, 2024
Copy link

melvin-bot bot commented Apr 29, 2024

Triggered auto assignment to @adelekennedy (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.

@MelvinBot
Copy link

This has been labelled "Needs Reproduction". Follow the steps here: https://stackoverflowteams.com/c/expensify/questions/16989

@shawnborton
Copy link
Contributor

cc @JmillsExpensify in case you want to add your case here too

@trjExpensify
Copy link
Contributor

I've just experienced this as well in a pretty brand new test account. Logs here:

logs-2024-05-01 16_24_37.825.txt

Looks like OpenReport and GetOlderActions are in a constant loop:

2024-05-01_17-28-05.mp4

When I click on one of those Fetch finished loading: POST "<URL>?". rows in the console, I see this error as well:

{"code":666,"jsonCode":403,"type":"Expensify\\Libs\\Error\\ExpError","UUID":"da7984df-628f-41f6-a2b8-ecd4499f7975","message":"Report not found","title":"","data":{"onyxData":[{"onyxMethod":"merge","key":"report_0","value":{"errorFields":{"notFound":{"1714580833933154":"Report not found"}}}}]},"htmlMessage":"","requestID":"87d123434d9c4164-LHR"}

@muttmuure
Copy link
Contributor

I hit this one too. @gedu @adhorodyski @janicduplessis @Szymon20000 could your teams take a look at this?

@melvin-bot melvin-bot bot added the Overdue label May 2, 2024
@muttmuure
Copy link
Contributor

posted a CPU profile to #newdot-performance https://expensify.slack.com/archives/C05LX9D6E07/p1714656403682529

@muttmuure muttmuure changed the title Workspace room does not load older messages HIGH: [API Reliability] Workspace room does not load older messages due to infinite GetOlderActions calls May 2, 2024
@janicduplessis
Copy link
Contributor

I will investigate this today

@roryabraham
Copy link
Contributor

There was a very long slack thread about this today, but for this issue I have put together three PRs:

Tomorrow I'll hopefully finish those up and we can test the fix with an AdHoc build, then if all is well fix this issue!

Copy link

melvin-bot bot commented May 3, 2024

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

@melvin-bot melvin-bot bot added the Overdue label May 6, 2024
@roryabraham
Copy link
Contributor

roryabraham commented May 6, 2024

I had this PR up to fix this, but it's likely that this will be fixed by #41644, which was based off my PR, and which we'll CP to fix another issue with clear reproduction steps

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels May 6, 2024
@roryabraham
Copy link
Contributor

hmm ok melvin, not sure why you added the overdue label right back, but we just merged #41644 and it's being CP'd to staging here. Good chance this might be fixed now.

@melvin-bot melvin-bot bot removed the Overdue label May 6, 2024
@roryabraham
Copy link
Contributor

Just posted a fresh update here. Basically we are getting ready to come out of POC phase and try to get our solution ready to merge

@adelekennedy
Copy link

making progress!

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Jun 13, 2024
Copy link

melvin-bot bot commented Jun 17, 2024

@janicduplessis, @roryabraham, @adelekennedy Whoops! This issue is 2 days overdue. Let's get this updated quick!

@adelekennedy
Copy link

Still following along here

@adelekennedy
Copy link

updates in slack thread

@melvin-bot melvin-bot bot added Overdue Reviewing Has a PR in review Weekly KSv2 and removed Overdue Daily KSv2 labels Jun 20, 2024
@roryabraham roryabraham removed the Reviewing Has a PR in review label Jul 12, 2024
@melvin-bot melvin-bot bot added the Overdue label Jul 12, 2024
@melvin-bot melvin-bot bot removed the Overdue label Jul 12, 2024
@roryabraham
Copy link
Contributor

Now that #41962 is on prod, this should be fixed. Requested a retest: https://expensify.slack.com/archives/C9YU7BX5M/p1720819446079169

@shawnborton
Copy link
Contributor

So I can easily see the historical chats in my Workspace chat, but one interesting thing is that it doesn't load the receipt images for my expenses unless I click into each expense:
CleanShot 2024-07-15 at 07 48 20@2x

Thoughts?

@roryabraham
Copy link
Contributor

That looks like a real but separate bug (but a legit one we should report in #expensify-bugs). Going to close this issue as complete

@roryabraham roryabraham moved this from CRITICAL to DONE in [#whatsnext] #vip-vsb Jul 15, 2024
@shawnborton
Copy link
Contributor

Sounds good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Weekly KSv2
Projects
No open projects
Development

No branches or pull requests

8 participants