Recent ruma updates prevent setting up new Mautrix bridges
I just set up a new Conduit server yesterday using this fork. Today I was trying to set up the mautrix-slack bridge, but after registering its appservice, I was getting forbidden errors when it tried to check for connectivity by hitting the /_matrix/client/versions
endpoint. This error prevented setting up the bridge.
The error indicates "User does not exist" because this API call is happening before the bridge attempts to register its bot user. It's intended to just check for connectivity to the homeserver and record the supported versions.
Until recently, this endpoint had AuthScheme::None
, but a recent change in ruma-client-api
changed it to AuthScheme::AccessTokenOptional
. That means it now hits this user ID validation that it wasn't hitting before.
This commit is the one that bumped ruma to a version that changed the auth scheme. By downgrading to the parent commit, I was able to set up my bridge.