-
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
[HOLD for payment 2024-04-03] [$500] Web - Thread - Console error ERR_FAILED 404 shows up when opening thread #38174
Comments
👋 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:
|
Triggered auto assignment to @luacmartins ( |
We think that this bug might be related to #vip-vsb |
I'm gonna demote this to NAB. Nothing seems broken, we make a 2nd request to |
Triggered auto assignment to @dylanexpensify ( |
Reviewing today! |
Found the issue in the logs. It seems like we're trying to subscribe to the report channel before the report is created, so there's a race condition somewhere. |
Job added to Upwork: https://www.upwork.com/jobs/~01bff0ded70edc9c84 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Pujan92 ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Console error ERR_FAILED 404 shows up. What is the root cause of that problem?In here and here, we're not checking that the Let's say we're on report What changes do you think we should make in order to solve the problem?In the above places here and here, check that
Also in here, we should have While investigating, I also found there's another bug where in here, we don't use For the report typing subscription here, we never unsubscribes, we might want to add unsubscription logic similar to for the leaving room event here. What alternative solutions did you explore? (Optional)NA |
ProposalPlease re-state the problem that we are trying to solve in this issue.We have authenticate pusher console error when opening a thread. What is the root cause of that problem?We try to subscribe to the pusher before the report is created. We currently have 2 subscriptions, one in the report screen and one in the report actions view. App/src/pages/home/ReportScreen.tsx Lines 437 to 441 in 00315b1
App/src/pages/home/report/ReportActionsView.tsx Lines 146 to 150 in 00315b1
The problem is in the report screen. When we open a new thread, it's possible that the report onyx data is not available yet, so the What changes do you think we should make in order to solve the problem?We can add a new check to make sure the report object has a report ID.
What alternative solutions did you explore? (Optional)Move the subscription to the report actions view too because it's only rendered when the report is already loaded. |
Proposal updated to add example code changes |
Thanks for the proposals. Both have covered the RCA correctly which seems to be Report onyx data might not be available post navigating to the thread. Regarding the solutions @tienifr I don't think we need to compare the route report id and onyx report id, because if it is still old report then 🎀👀🎀 C+ reviewed |
Current assignee @luacmartins is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
@Pujan92 I believe comparing the reportID is safer and doesn’t cause any regressions right? In this line, I don't think we'd feel confident saying Do you think just checking reportID exists is substantially different from my proposal, especially when there’s no harm (even safer) if we do the comparison as in my proposal? 😄 cc @luacmartins |
I agree that we should minimize these changes to avoid other regressions |
Oh yes, that's technically possible. I agree to just validate the reportID. |
@luacmartins Can you plz check the review comment and other followed comments to decide whom to assign? Also, both contributors have provided valuable inputs so we may consider the bounty split if you think the same. |
@luacmartins TLDR; @tienifr's proposal is the first one posted, and suggests comparing the @bernhardoj's proposal suggests to rely on the existence of @Pujan92 also prefers that Let us know what you think! |
I agree that both contributors added value to this issue, so we can split the bounty. As for the proposal, I like @tienifr's solution more since it's stricter. |
📣 @Pujan92 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @tienifr 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
nice! |
PR ready for review #38657. |
Merged, waiting for regression period then paying out! |
@dylanexpensify PR hit production 5 days ago. Payment due should be on April 03. |
@dylanexpensify Bump on the above ^. @Pujan92 Please complete the checklist once you have time. |
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
Regression Test Steps
Do you agree 👍 or 👎 ? |
@dylanexpensify seems automation is broken for this issue. |
Updated the issue. Bump @dylanexpensify for payment |
Paid out! |
done! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.51-0
Reproducible in staging?: y
Reproducible in production?: n
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
No console error will show up.
Actual Result:
Console error ERR_FAILED 404 shows up.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6411473_1710273044161.20240313_034855.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: