-
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 2023-02-07] [$1000] Web - Log out - Console error is displayed when log out #14350
Comments
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open
|
On first glance this error looks kind of harmless - but also like it is coming from the Pusher JS lib? Are there any observable bad effects here? Or just a console error? |
I can reproduce this. Suspect it happens because we have already disconnected from Pusher when we try to unsubscribe from the report channel here:
The only PR I found related to logging out is here: https://github.com/Expensify/App/pull/13886/files But not really connecting that change with the Pusher error. Probably will require some debugging. Not sure if this is a "blocker" though. The error does look a bit harmless - but obviously would be ideal to not see it at all. I want to say one solution would be to prevent unsubscribing if there is no websocket connection, but not really sure if that's correct to assume. And also doesn't quite explain the root cause of why this error has begun showing up. |
Update: Only managed to reproduce 1/5 sign outs on staging - so I think most likely this is harmless and should be downgraded to "not blocker" while we continue to investigate - removing the label. |
Yeah, I agree this is not a deploy blocker. Sure strange that this would all of a sudden start happening. I did change how the signout stuff works a little bit but it should mean that the redirect to sign-in page doesn't happen until the Onyx change is committed. I just reproduced this, and the console logs around the error are sure interesting: I'm not sure what's up with that second error, maybe it's reported in another issue. Seems totally unrelated. The biggest oddity to me is the log The pusher error is happening from |
Nice debugging. I don't have much to add but wanted to say that I am not sure if I would 100% trust that log. That can happen anytime the navigation state changes: App/src/libs/Navigation/NavigationRoot.js Lines 60 to 68 in 6902b94
Doesn't answer the question of why the |
Oh I wonder if the I'm assuming the |
Sorry I missed this -reviewing |
Could reproduce the error in staging. @marcaaron @tgolen are we good making this external? Or do we think internal? |
I think it should go |
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.2.62-1 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-02-07. 🎊 After the hold period, please check if any of the following need payment for this issue, and if so check them off after paying:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
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:
|
I think this issue is past the regression period now? |
@chiragsalian I'm not sure what caused this regression, apart from the PR which removed the event name #752 did we break something else? |
@Santhosh-Sellavel I'll need to view the https://github.com/Expensify/Expensify/issues/144728 issue once. I think this fix might have broken what was the intentional fix behind #752. I just tried out the mentioned steps in #752 and looks like sending the event name to the unsubscribe function just unbinds that specific event from the channel but does not unsubscribe from the channel itself, the channel connection remains open when we navigate to another channel. Although this won't cause any regression since we do not have any other events subsribed to the report, I'll need to see why the fix was implemented first in https://github.com/Expensify/Expensify/issues/144728. As for this specific issue, the root cause and solution mentioned in the proposal is correct, we will need to see why this might break and re create https://github.com/Expensify/Expensify/issues/144728 issue. It's pretty weird though, has this issue been in the repo since 3 years or did it just start popping up?! If this indeed has repercussions, we might want to revert the current changes and instead add a delay after |
Hmm okay, so I think your solution was fine @Prince-Mendiratta. You mention your fix might have brought back this issue - #752. But i was not able to reproduce it. The issue is more than 2 years old. With your solution prince I would think that unbinding from the event won't unsubscribe from the channel itself and maybe that's fine. We can create a follow-up issue to figure out how to unsubscribe from the channel itself so that it doesn't take up pusher space perhaps.
Not sure, maybe no one noticed it before. Hard to say 🤷♂️ Not sure if it's worth the time and effort tracing through the past code IMO. As a first step let's confirm if there are problems,
|
Cool, @chiragsalian We can this off this checklist! |
Yup, updated |
Sorry, I won't have time to test this. If we can't reproduce it then let's consider it fixed. |
@dylanexpensify bump for payment thanks! |
on it! |
@Santhosh-Sellavel did you apply? Can't see you on the job proposals in Upwork |
@Prince-Mendiratta sent offer! |
@dylanexpensify accepted. Would this be eligible for a timeline bonus? |
@Prince-Mendiratta can you confirm your PR didn't lead to a regression? If so, then yes it's eligible! |
@dylanexpensify Yes, can confirm, no regressions here. The issue we were talking about in the comment above was super old and we were unable to reproduce. |
@dylanexpensify Applied now, yeah no regressions! |
Wooot! |
payment sent @Prince-Mendiratta with bonus! |
thanks a lot everyone, cheers! |
payment sent @Santhosh-Sellavel ! |
posted about RT steps |
alrighty, we're gonna do nothing for RT, so all good here! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
Console error is not displayed when log out
Actual Result:
Console error is displayed when log out
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.2.55.0
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers): applausetester+0901abb@applause.expensifail.com/Feya87Katya
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Recording.2010.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: