matrix-org / matrix-org/matrix-rust-sdk

deserialization failed: invalid type: null, expected struct RoomSummary

Open
#4,798 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
2.3k
Forks
500
Avg merge
1d 16h
Merged PRs (30d)
106

Description

`Client::sync` fails with:

> Error: deserialization failed: invalid type: null, expected struct RoomSummary at line 1 column 1308

```
Stack backtrace:
0: anyhow::error:: for anyhow::Error>::from
1: myapp::main::{{closure}}.17214
2: myapp::main
3: std::sys::backtrace::__rust_begin_short_backtrace
4: main
5: __libc_start_call_main
6: __libc_start_main_alias_2
7: _start
```

[Cargo.lock](https://github.com/user-attachments/files/19238240/Cargo.lock.txt)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the Client::sync entry point and the RoomSummary deserialization path, then reproduce the reported null-type failure using the issue details and attached Cargo.lock. Trace the response field at the reported location; done means Client::sync handles the observed response without this deserialization error and includes a regression check.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.