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

matrix server request throttling with neochat #22

Open
fierevere opened this issue Dec 4, 2023 · 1 comment
Open

matrix server request throttling with neochat #22

fierevere opened this issue Dec 4, 2023 · 1 comment

Comments

@fierevere
Copy link

Expected Behavior

Neochat is a native matrix client for KDE suite, https://apps.kde.org/neochat/
used version is 23.08.3-r1 (Gentoo)
Expected to work.

Actual Behavior

Causing server rate limit exceed and throttling at server side, neochat is freezing
Unable to POST messages, maybe due to rate limits.
Users dont have avatars.

Steps to Reproduce

Here are the logs:

Reading access token from the keychain for "@fierevere:community.wordpress.org"
quotient.main: The library is built with end-to-end encryption (E2EE)
quotient.e2ee: Successfully loaded pickling key from keychain
quotient.e2ee: 65536 bytes of secure heap initialised
quotient.e2ee: Allocated 128 bytes of secure heap (requested 128 bytes), 128 / 65536 bytes of secure heap used in total
quotient.e2ee: The fixed buffer source is shared; assuming that the caller is responsible for securely clearing other copies
quotient.main: Malformed userId: "@.m.rule.is_user_mention"
quotient.main: Malformed userId: "@.m.rule.is_room_mention"
quotient.main: Malformed userId: "@.m.rule.suppress_edits"
quotient.main: Malformed userId: "@.m.rule.contains_user_name"
quotient.jobs: 404 <- POST https://wporg.automattrix.com:443/_matrix/client/v3/join/here_is_some_token
quotient.jobs: "JoinRoomJob" status NotFound: Can't join remote room because no servers that are in the room have been provided.
quotient.jobs.thumbnail: 502 <- GET https://wporg.automattrix.com:443/_matrix/media/v3/thumbnail/community.wordpress.org/_token_
quotient.jobs.thumbnail: "GetContentThumbnailJob" status NetworkError: Error transferring https://wporg.automattrix.com:443/_matrix/media/v3/thumbnail/community.wordpress.org/PiGIcHGakGiGGBRozxmRfsCC?width=128&height=128&method=scale&allow_remote=true&timeout_ms=20000&allow_redirect=false - server replied: Bad Gateway
quotient.jobs.thumbnail: "GetContentThumbnailJob": retry #1 in 5 s
quotient.jobs: 502 <- GET https://wporg.automattrix.com:443/_matrix/media/v3/preview_url
quotient.jobs: "GetUrlPreviewJob" status NetworkError: Error transferring https://wporg.automattrix.com:443/_matrix/media/v3/preview_url?url=https://wordpress.org/support/users/abawazir/edit/ - server replied: Bad Gateway
quotient.jobs: "GetUrlPreviewJob": retry #1 in 5 s
quotient.jobs: 502 <- GET https://wporg.automattrix.com:443/_matrix/media/v3/preview_url
quotient.jobs: "GetUrlPreviewJob" status NetworkError: Error transferring https://wporg.automattrix.com:443/_matrix/media/v3/preview_url?url=https://wordpress.org/support/users/darkspider85/edit/ - server replied: Bad Gateway
quotient.jobs: "GetUrlPreviewJob": retry #1 in 5 s
quotient.jobs: 502 <- GET https://wporg.automattrix.com:443/_matrix/media/v3/preview_url
quotient.jobs: "GetUrlPreviewJob" status NetworkError: Error transferring https://wporg.automattrix.com:443/_matrix/media/v3/preview_url?url=https://wordpress.org/support/users/rghedin/edit/ - server replied: Bad Gateway
quotient.jobs: "GetUrlPreviewJob": retry #1 in 5 s
quotient.jobs: 502 <- GET https://wporg.automattrix.com:443/_matrix/media/v3/preview_url
quotient.jobs: "GetUrlPreviewJob" status NetworkError: Error transferring https://wporg.automattrix.com:443/_matrix/media/v3/preview_url?url=https://wordpress.org/support/users/zxcvbnmzx/edit/ - server replied: Bad Gateway
quotient.jobs: "GetUrlPreviewJob": retry #1 in 5 s
quotient.jobs: 502 <- GET https://wporg.automattrix.com:443/_matrix/media/v3/preview_url
quotient.jobs: "GetUrlPreviewJob" status NetworkError: Error transferring https://wporg.automattrix.com:443/_matrix/media/v3/preview_url?url=https://wordpress.org/support/users/rghedin/edit/ - server replied: Bad Gateway
quotient.jobs: "GetUrlPreviewJob": retry #1 in 5 s
quotient.jobs: 502 <- GET https://wporg.automattrix.com:443/_matrix/media/v3/preview_url
quotient.jobs: "GetUrlPreviewJob" status NetworkError: Error transferring https://wporg.automattrix.com:443/_matrix/media/v3/preview_url?url=https://wordpress.org/support/users/soikeopsg/edit/ - server replied: Bad Gateway
quotient.jobs: "GetUrlPreviewJob": retry #1 in 5 s
quotient.jobs: 502 <- GET https://wporg.automattrix.com:443/_matrix/media/v3/preview_url
quotient.jobs: "GetUrlPreviewJob" status NetworkError: Error transferring https://wporg.automattrix.com:443/_matrix/media/v3/preview_url?url=https://wordpress.org/support/users/taratororu1/edit/ - server replied: Bad Gateway
quotient.jobs: "GetUrlPreviewJob": retry #1 in 5 s
quotient.jobs: 502 <- GET https://wporg.automattrix.com:443/_matrix/media/v3/preview_url
quotient.jobs: "GetUrlPreviewJob" status NetworkError: Error transferring https://wporg.automattrix.com:443/_matrix/media/v3/preview_url?url=https://wordpress.org/support/users/wpseoai/edit/ - server replied: Bad Gateway
quotient.jobs: "GetUrlPreviewJob": retry #1 in 5 s
quotient.jobs: 502 <- GET https://wporg.automattrix.com:443/_matrix/media/v3/preview_url
quotient.jobs: "GetUrlPreviewJob" status NetworkError: Error transferring https://wporg.automattrix.com:443/_matrix/media/v3/preview_url?url=https://wordpress.org/support/users/jonas56/edit/ - server replied: Bad Gateway
quotient.jobs: "GetUrlPreviewJob": retry #1 in 5 s
quotient.jobs: 502 <- GET https://wporg.automattrix.com:443/_matrix/media/v3/preview_url
quotient.jobs: "GetUrlPreviewJob" status NetworkError: Error transferring https://wporg.automattrix.com:443/_matrix/media/v3/preview_url?url=https://wordpress.org/support/users/fascinationdesign/edit/ - server replied: Bad Gateway
quotient.jobs: "GetUrlPreviewJob": retry #1 in 5 s
quotient.jobs: 502 <- GET https://wporg.automattrix.com:443/_matrix/media/v3/preview_url
quotient.jobs: "GetUrlPreviewJob" status NetworkError: Error transferring https://wporg.automattrix.com:443/_matrix/media/v3/preview_url?url=https://wordpress.org/support/users/vietnamtravelguys/edit/ - server replied: Bad Gateway
quotient.jobs: "GetUrlPreviewJob": retry #1 in 5 s
quotient.jobs: 429 <- GET https://wporg.automattrix.com:443/_matrix/media/v3/preview_url
quotient.jobs: "GetUrlPreviewJob" status TooManyRequests: Too many requests
quotient.jobs: 429 <- GET https://wporg.automattrix.com:443/_matrix/media/v3/preview_url
quotient.jobs: "GetUrlPreviewJob" status TooManyRequests: Too many requests
quotient.jobs: 429 <- GET https://wporg.automattrix.com:443/_matrix/media/v3/preview_url
quotient.jobs: "GetUrlPreviewJob" status TooManyRequests: Too many requests
quotient.jobs: 429 <- GET https://wporg.automattrix.com:443/_matrix/media/v3/preview_url
quotient.jobs: "GetUrlPreviewJob" status TooManyRequests: Too many requests
quotient.jobs: 429 <- GET https://wporg.automattrix.com:443/_matrix/media/v3/preview_url
quotient.jobs: "GetUrlPreviewJob" status TooManyRequests: Too many requests
quotient.jobs: 502 <- GET https://wporg.automattrix.com:443/_matrix/media/v3/preview_url
quotient.jobs: "GetUrlPreviewJob" status NetworkError: Error transferring https://wporg.automattrix.com:443/_matrix/media/v3/preview_url?url=https://wordpress.org/support/users/thegamesdownload/edit/ - server replied: Bad Gateway
quotient.jobs: "GetUrlPreviewJob": retry #1 in 5 s

then those errors are non-stop

quotient.jobs: 429 <- GET https://wporg.automattrix.com:443/_matrix/media/v3/preview_url
quotient.jobs: "GetUrlPreviewJob" status TooManyRequests: Too many requests
quotient.jobs: 429 <- GET https://wporg.automattrix.com:443/_matrix/media/v3/preview_url
quotient.jobs: "GetUrlPreviewJob" status TooManyRequests: Too many requests
quotient.jobs: 429 <- GET https://wporg.automattrix.com:443/_matrix/media/v3/preview_url
quotient.jobs: "GetUrlPreviewJob" status TooManyRequests: Too many requests
quotient.jobs: 429 <- GET https://wporg.automattrix.com:443/_matrix/media/v3/preview_url
quotient.jobs: "GetUrlPreviewJob" status TooManyRequests: Too many requests
quotient.jobs: 429 <- GET https://wporg.automattrix.com:443/_matrix/media/v3/preview_url
quotient.jobs: "GetUrlPreviewJob" status TooManyRequests: Too many requests

Environment

Operating System: Gentoo Linux 2.14
KDE Plasma Version: 5.27.9
KDE Frameworks Version: 5.112.0
Qt Version: 5.15.11
Kernel Version: 6.6.4-darkness (64-bit)
Graphics Platform: X11
Processors: 8 × AMD Ryzen 5 2500U with Radeon Vega Mobile Gfx

Screenshots

No response

Additional Context

No response

@fierevere
Copy link
Author

actually neochat is able to post, but the lag is about several minutes.
2-5 (2 minutes when neochat requests for avatars are less intensive)
lag is probably caused by server rate limit too

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

No branches or pull requests

1 participant