Sending an invite to a Dendrite instance from a Synapse instance with an experimental room version fails (as expected), but uses the incorrect error code (M_BAD_JSON instead of M_UNSUPPORTED_ROOM_VERSION).
Steps to reproduce
Setup a Synapse (v1.36.0 should work)
Create a room with an experimental room version (create a room, then upgrade it in Element Web with /upgraderoom org.matrix.msc3083)
Invite a user on Dendrite
The user will see an error:
Dendrite returns M_BAD_JSON.
Expected results
Dendrite returns an error like:
{"errcode":"M_UNSUPPORTED_ROOM_VERSION","error":"Homeserver does not support this room version"}
This helps client give an actionable response to the user.
Background information
This was tested against dendrite.matrix.org
go version
:Description
Sending an invite to a Dendrite instance from a Synapse instance with an experimental room version fails (as expected), but uses the incorrect error code (
M_BAD_JSON
instead ofM_UNSUPPORTED_ROOM_VERSION
).Steps to reproduce
/upgraderoom org.matrix.msc3083
)Dendrite returns
M_BAD_JSON
.Expected results
Dendrite returns an error like:
This helps client give an actionable response to the user.