You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When setting up a RustSdkCryptoStorageProvider on the MatrixClient, it keeps throwing the error user_id or device_id mismatch in the log and doesn't actually seem to synchronize beyond that point.
I also tried with password auth in code directly so that the room ID would immediately be associated with this crypto storage but that to also no avail (just using passwordLogin and taking the accessToken from the created MatrixClient)
Expected behavior
It should handle encrypted rooms correctly.
Log snippet
Dendrite log:
time="2023-08-01T18:45:51.815739336Z" level=error msg="Failed to upload one or more keys" key_errors="map[@bot:localhost:map[p2ivEVrj:user_id or device_id mismatch: users: - @bot:localhost, devices: - p2ivEVrj]]" req.id=mJFiUUqjzVpV req.method=POST req.path=/_matrix/client/v3/keys/upload user_id="@bot:localhost"
Describe the bug
When setting up a
RustSdkCryptoStorageProvider
on theMatrixClient
, it keeps throwing the erroruser_id or device_id mismatch
in the log and doesn't actually seem to synchronize beyond that point.and also the following messages are thrown
and
To Reproduce
Steps to reproduce the behavior:
Very minimal example code:
I also tried with password auth in code directly so that the room ID would immediately be associated with this crypto storage but that to also no avail (just using passwordLogin and taking the accessToken from the created MatrixClient)
Expected behavior
It should handle encrypted rooms correctly.
Log snippet
Dendrite log:
Additional context
I could trace the error back to this request https://github.com/turt2live/matrix-bot-sdk/blob/main/src/e2ee/RustEngine.ts#L136 but im not exactly sure how to interpret this as im not familiar with "OlmMachine".
Dendrite source code I speculate the error might be from but im not absolutely sure about it: https://github.com/matrix-org/dendrite/blob/main/userapi/internal/key_api.go#L685-L695
The text was updated successfully, but these errors were encountered: