Panics with "user is authenticated" on simplified sliding sync requests for appservices #1465

Open
opened 2026-02-26 18:53:28 +00:00 by illucc · 3 comments

Happened when I invited https://gitdab.com/cadence/out-of-your-element to a room

thread 'conduwuit:worker' panicked at src/api/client/sync/v5.rs:71:53: user is authenticated
 Backtrace:
    0: <unknown>
    1: <unknown>
    2: <unknown>
    3: <unknown>
    4: <unknown>
    5: <unknown>
    6: <unknown>
    7: <unknown>
    8: <unknown>
    9: <unknown>
   10: <unknown>
   11: <unknown>
   12: <unknown>
   13: <unknown>
   14: <unknown>
   15: <unknown>
   16: <unknown>
   17: <unknown>
   18: <unknown>
   19: <unknown>
   20: <unknown>
   21: <unknown>
   22: <unknown>
   23: <unknown>
   24: <unknown>
   25: <unknown>
   26: <unknown>
   27: <unknown>
   28: <unknown>
   29: <unknown>
   30: <unknown>
   31: <unknown>
   32: <unknown>
   33: <unknown>
   34: start_thread
   35: __GI___clone
 thread 'conduwuit:worker' panicked at src/api/client/sync/v5.rs:71:53:
 user is authenticated
 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
   2026-02-26T18:31:36.772567Z ERROR conduwuit_router::layers: user is authenticated
     at src/router/layers.rs:193 on conduwuit:worker ThreadId(7)
:     in conduwuit_router::layers::panic
   2026-02-26T18:31:36.772707Z ERROR conduwuit_router::request: 500 Internal Server Error, method: POST, uri: /_matrix/client/unstable/org.matrix.simplified_msc3575/sync?user_id=%40_ooye_bot%3Amisty.cafe&timeout=0
     at src/router/request.rs:105 on conduwuit:worker ThreadId(7)
   2026-02-26T18:31:36.772750Z ERROR tower_http::trace::on_failure: response failed, classification: Status code: 500 Internal Server Error, latency: 4 ms
    at /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/tower-http-0.6.8/src/trace/on_failure.rs:93 on conduwuit:worker ThreadId(7)
Happened when I invited https://gitdab.com/cadence/out-of-your-element to a room ``` thread 'conduwuit:worker' panicked at src/api/client/sync/v5.rs:71:53: user is authenticated Backtrace: 0: <unknown> 1: <unknown> 2: <unknown> 3: <unknown> 4: <unknown> 5: <unknown> 6: <unknown> 7: <unknown> 8: <unknown> 9: <unknown> 10: <unknown> 11: <unknown> 12: <unknown> 13: <unknown> 14: <unknown> 15: <unknown> 16: <unknown> 17: <unknown> 18: <unknown> 19: <unknown> 20: <unknown> 21: <unknown> 22: <unknown> 23: <unknown> 24: <unknown> 25: <unknown> 26: <unknown> 27: <unknown> 28: <unknown> 29: <unknown> 30: <unknown> 31: <unknown> 32: <unknown> 33: <unknown> 34: start_thread 35: __GI___clone thread 'conduwuit:worker' panicked at src/api/client/sync/v5.rs:71:53: user is authenticated note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace 2026-02-26T18:31:36.772567Z ERROR conduwuit_router::layers: user is authenticated at src/router/layers.rs:193 on conduwuit:worker ThreadId(7) : in conduwuit_router::layers::panic 2026-02-26T18:31:36.772707Z ERROR conduwuit_router::request: 500 Internal Server Error, method: POST, uri: /_matrix/client/unstable/org.matrix.simplified_msc3575/sync?user_id=%40_ooye_bot%3Amisty.cafe&timeout=0 at src/router/request.rs:105 on conduwuit:worker ThreadId(7) 2026-02-26T18:31:36.772750Z ERROR tower_http::trace::on_failure: response failed, classification: Status code: 500 Internal Server Error, latency: 4 ms at /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/tower-http-0.6.8/src/trace/on_failure.rs:93 on conduwuit:worker ThreadId(7) ```
Owner

Seems like the user that the appservice is authenticated at isn't making it to the function somehow.

let sender_user = body.sender_user.as_ref().expect("user is authenticated");

Seems like the user that the appservice is authenticated at isn't making it to the function somehow. https://forgejo.ellis.link/continuwuation/continuwuity/src/commit/052c4dfa2165fdc4839fed95b71446120273cf23/src/api/client/sync/v5.rs#L70
Owner

is the user_id in the appservice's namespaces?

is the user_id in the appservice's namespaces?
Author

yep! the bots userid is @_ooye_bot:misty.cafe and the appservice has the following:

sender_localpart: _ooye_bot
namespaces:
  users:
    - exclusive: true
      regex: "@_ooye_.*:misty\\.cafe"
  aliases:
    - exclusive: true
      regex: "#_ooye_.*:misty\\.cafe"

it seems to panic only when I invite the bot and it attempts to join, if I use ooyes easy mode, which creates the new rooms by itself, there seems to be no issue and everything works as intended

yep! the bots userid is @_ooye_bot:misty.cafe and the appservice has the following: ```yaml sender_localpart: _ooye_bot namespaces: users: - exclusive: true regex: "@_ooye_.*:misty\\.cafe" aliases: - exclusive: true regex: "#_ooye_.*:misty\\.cafe" ``` it seems to panic *only* when I invite the bot and it attempts to join, if I use ooyes easy mode, which creates the new rooms by itself, there seems to be no issue and everything works as intended
Sign in to join this conversation.
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
continuwuation/continuwuity#1465
No description provided.