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

[Network] Messages are sending twice on staging desktop app #4766

Closed
marcaaron opened this issue Aug 20, 2021 · 11 comments
Closed

[Network] Messages are sending twice on staging desktop app #4766

marcaaron opened this issue Aug 20, 2021 · 11 comments
Assignees

Comments

@marcaaron
Copy link
Contributor

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:

Send a comment

Expected Result:

Comment only appears once

Actual Result:

Comment is getting created multiple times in some scenarios

Workaround:

Yes, delete the extra comment I guess?

Platform:

Where is this issue occurring?

  • Desktop App

Version Number:
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Expensify/Expensify Issue URL:

View all open jobs on GitHub

@marcaaron marcaaron added DeployBlockerCash This issue or pull request should block deployment AutoAssignerTriage Auto assign issues for triage to an available triage team member Daily KSv2 labels Aug 20, 2021
@MelvinBot
Copy link

Triggered auto assignment to @muttmuure (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

@MelvinBot MelvinBot removed the AutoAssignerTriage Auto assign issues for triage to an available triage team member label Aug 20, 2021
@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Aug 20, 2021
@OSBotify
Copy link
Contributor

👋 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:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@MelvinBot
Copy link

Triggered auto assignment to @madmax330 (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@parasharrajat
Copy link
Member

I am checking if this is a side effect from My PR.

@parasharrajat
Copy link
Member

parasharrajat commented Aug 20, 2021

I just checked this is not a side-effect from My PR. Network.post is being called two times when we are sending a single message. I am trying to figure out why this is being called twice.

EDit- Hold, I am still analysis so please think of the above statement as a conjecture.
I was wrong

@marcaaron
Copy link
Contributor Author

Haha Ok I can try to look into this as well. I wasn't sure if the PR caused it or if it just did not fix the original problem - but clearly still happening on staging.

@marcaaron marcaaron changed the title Messages are sending twice on staging desktop app [Network/Offline] Messages are sending twice on staging desktop app Aug 21, 2021
@marcaaron marcaaron changed the title [Network/Offline] Messages are sending twice on staging desktop app [Network] Messages are sending twice on staging desktop app Aug 21, 2021
@isagoico
Copy link

We tested this on version 1.0.86-9 and it was a pass @marcaaron is this still happening on your side?

fixed.mp4

@marcaaron
Copy link
Contributor Author

I think it must be due to an API issue or hard to reproduce. FWIW I haven't noticed it again in the staging app so we can remove the deploy blocker I think. But maybe can leave this open for a bit to track.

@kidroca
Copy link
Contributor

kidroca commented Aug 31, 2021

I think I've found a cause and explained it here: #4214 (comment)

A developer should be able to confirm this

To reproduce consistently you can add some conditional code inside processNetworkQueue that will trigger a request through Network.post. This will in turn make a new call to processNetworkQueue before the first queue is over and before it had the chance to reset parameters

@muttmuure muttmuure removed their assignment Sep 7, 2021
@madmax330
Copy link
Contributor

Going to drop this back in the pool as I don't have time to look into it.

@MelvinBot MelvinBot removed the Overdue label Oct 8, 2021
@madmax330 madmax330 removed their assignment Oct 8, 2021
@marcaaron marcaaron self-assigned this Oct 25, 2021
@marcaaron marcaaron removed the n6-hold label Oct 25, 2021
@marcaaron
Copy link
Contributor Author

Gonna close this as it's a dupe of #4214

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants