Dendrite puts Element into a loop that floods requests, when a user's attempt to register fails because username already exists. Synapse doesn't. #1999
Dendrite version or git SHA:
commit 329c9e671c763ce3f7adc8c734246eb53b47df94
Monolith or Polylith?:
Monolith
SQLite3 or Postgres?:
SQLite3
Running in Docker?:
No
go version:
go1.17 linux/amd64
Description
This may look like an Element issue, but it doesn't happen if I use Synapse (Debian pre-built package from Apt, version 1.41.1+buster1). So I decided to post it here.
After building and running Dendrite, I followed the steps here to start working on Element locally. If I try to register with a username that already exists, the browser's developer console gets flooded with:
POST http://localhost:8008/_matrix/client/r0/register 429 (Too Many Requests)
Active flow => {"stages":["m.login.dummy"]}
Next stage: m.login.dummy
Sometimes the 429 is replaced with 400.
Element seems to constantly loop back to this line of code.
Background information
go version
: go1.17 linux/amd64Description
This may look like an Element issue, but it doesn't happen if I use Synapse (Debian pre-built package from Apt, version 1.41.1+buster1). So I decided to post it here.
After building and running Dendrite, I followed the steps here to start working on Element locally. If I try to register with a username that already exists, the browser's developer console gets flooded with:
Sometimes the 429 is replaced with 400. Element seems to constantly loop back to this line of code.
Steps to reproduce
matrix-js-sdk
is at commit 3c36be9839091bf63a4850f4babed0c976d48c0ematrix-react-sdk
is at commit 7a083946866e9f28917cc90c65c51f8cc3ad01d8element-web
is at commit b73e2fc27ddab856958ae3c5f27f5821bf3d939f.Here's the log from Dendrite:
The rest of the logs are all repetitions of the last line.