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

Too Many Requests on Bulk Server Notices #90

Open
samuel-p opened this issue Nov 29, 2020 · 4 comments
Open

Too Many Requests on Bulk Server Notices #90

samuel-p opened this issue Nov 29, 2020 · 4 comments
Labels
enhancement New feature or request wait for admin API This needs some changes in synapse

Comments

@samuel-p
Copy link

I tried to send a Server Notice to all the users (~40) of my homeserver, but for more than half of them I get a 429 Too Many Requests as response:

{
	"errcode": "M_LIMIT_EXCEEDED",
	"error": "Too Many Requests",
	"retry_after_ms": 9978
}

Bildschirmfoto von 2020-11-29 21-55-42

Maybe it is possible to not send the requests in parallel and handle the responses to delay the following requests if one gets 429 error.

@samuel-p
Copy link
Author

samuel-p commented Dec 2, 2020

I just found this issue matrix-org/synapse#6286. Maybe this is already a possible solution. If so, I think its useful to mention it somewhere in the docs.

@NeoTheThird
Copy link

Maybe it would be possible to implement a batching middleware that ensures only a certain number of requests are sent per time period and requests rejected with 429 are automatically dispatched again at least once after the retry_after_ms has elapsed?

@dklimpel
Copy link
Contributor

You can retry it with Synapse v1.32.0.
Docs: https://github.com/matrix-org/synapse/blob/develop/docs/admin_api/user_admin_api.rst#override-ratelimiting-for-users

@awesome-manuel awesome-manuel added enhancement New feature or request wait for admin API This needs some changes in synapse labels Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request wait for admin API This needs some changes in synapse
Projects
None yet
Development

No branches or pull requests

5 participants