tchapgouv / tchap-identite

Service d'Authentication pour les produits BetaGouv
https://beta.gouv.fr/startups/authentification.html
MIT License
4 stars 1 forks source link

Blocked by rate limitat on invite when sending an OTP code on Tchap #172

Open mcalinghee opened 2 years ago

mcalinghee commented 2 years ago

When we send an OTP code on Tchap, we perform the following action :

  1. create a room
  2. invite the user
  3. send the OTP

When we do 2.invite the user, we have the following limitation:

org.beta.authentification.matrix.exception.MatrixRuntimeException: feign.FeignException$TooManyRequests: [429 Unknown Status] during [POST] to [https://matrix.agent.dinum.tchap.gouv.fr/_matrix/client/unstable/rooms/%21qjtZilsvHbhJSGQmUT%3Aagent.dinum.tchap.gouv.fr/invite] [RoomClient#invite(String,InviteBody)]: [{"errcode":"M_LIMIT_EXCEEDED","error":"Too Many Requests","retry_after_ms":168299}]

mcalinghee commented 1 year ago

More information on the rate limitation on : https://github.com/tchapgouv/tchap-infra/issues/1489