turt2live / matrix-bot-sdk

TypeScript/JavaScript SDK for Matrix bots
MIT License
199 stars 69 forks source link

Using MatrixClient with RustSdkCryptoStorageProvider fails with an error #286

Closed urmaul closed 1 year ago

urmaul commented 1 year ago

Describe the bug Trying to run and use MatrixClient with RustSdkCryptoStorageProvider fails with an error.

To Reproduce Steps to reproduce the behavior:

  1. Create RustSdkCryptoStorageProvider pointing to an empty directory
  2. Initialize MatrixClient
  3. Try to send or receive a message
  4. See error

Expected behavior Either sending and recieving messages works or I see a meaningful error message.

Log snippet I've got this error when trying to send a message:

MatrixHttpClient (REQ-6) { errcode: 'M_NOT_FOUND', error: 'Event not found.' }
MatrixClientLite Error handling sync Error: invalid type: map, expected a sequence at line 1 column 0
MatrixClientLite Backing off for 8879.794091495483ms

Additional context I don't know how to initialize encryption properly and I couldn't find it in the docs. Should it just work or I should do something more? It created some files in that directory though.

AndrewFerr commented 1 year ago

This should have been fixed by https://github.com/turt2live/matrix-bot-sdk/pull/283

urmaul commented 1 year ago

Great! Could you please make a new release with this update?

turt2live commented 1 year ago

Great! Could you please make a new release with this update?

A release is planned for the near future, once a couple other encryption issues are fixed.


@AndrewFerr I'd appreciate forks not be advertised here.