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

Element (occasionally) repeatedly spams /sync #25324

Open
chebureki opened this issue May 9, 2023 · 5 comments
Open

Element (occasionally) repeatedly spams /sync #25324

chebureki opened this issue May 9, 2023 · 5 comments
Labels

Comments

@chebureki
Copy link

Steps to reproduce

  1. Use app.element.io
  2. Create a message or two
  3. Sit back and observe the developer tools

Outcome

What did you expect?

To only request /sync upon when

What happened instead?

All these elements share the same since parameter.
About 20,000 requests have been made in a matter of 30 seconds
element-sync-spam

I suspect this is an synapse issue, where long polling is incorrect.

Operating system

Arch Linux

Browser information

Chromium Version 112.0.5615.165

URL for webapp

localhost

Application version

Element version: 1.11.26 Olm version: 3.2.12

Homeserver

Synapse 1.82.0

Will you send logs?

Yes

@t3chguy
Copy link
Member

t3chguy commented May 9, 2023

What is the response of the /sync request? Without knowing that we can't dig into it

@t3chguy t3chguy added the X-Needs-Info This issue is blocked awaiting information from the reporter label May 9, 2023
@chebureki
Copy link
Author

What is the response of the /sync request? Without knowing that we can't dig into it

{"next_batch":"s306_5214_50_1_200_1_1_20_0_1","device_lists":{"changed":["@kirill:my.matrix.host"]},"device_one_time_keys_count":{"signed_curve25519":50},"org.matrix.msc2732.device_unused_fallback_key_types":["signed_curve25519"],"device_unused_fallback_key_types":["signed_curve25519"]}

@t3chguy
Copy link
Member

t3chguy commented May 9, 2023

Will you send logs?
Yes

Not seeing any logs submitted from you

Thanks for the /sync response though, looks like Synapse is sending an incremented next_batch so something is causing the sync to be retried and not persisted properly

@richvdh
Copy link
Member

richvdh commented Aug 30, 2023

matrix-org/synapse#15824

@richvdh richvdh closed this as completed Aug 30, 2023
@richvdh
Copy link
Member

richvdh commented Aug 30, 2023

Thanks for the /sync response though, looks like Synapse is sending an incremented next_batch so something is causing the sync to be retried and not persisted properly

meh, maybe not matrix-org/synapse#15824. It's a bit hard to tell though: given the report there is no way to correlate request and response.

If this happens again, please send debug logs from within Element.

@t3chguy t3chguy reopened this Aug 31, 2023
@t3chguy t3chguy removed the X-Needs-Info This issue is blocked awaiting information from the reporter label Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants