bug: 500 Internal Server Error on /relations/.../m.thread when from query param is empty #2217

Open
opened 2026-09-08 16:45:24 +00:00 by angiioh · 1 comment

What is the bug?

A GET request to the thread-relations endpoint with an empty from parameter causes a 500 Internal Server Error instead of being handled gracefully (e.g. treated the same as an omitted from).

Steps to reproduce

  1. Send a GET request like:
    GET /_matrix/client/v1/rooms/{roomId}/relations/{eventId}/m.thread?from=&limit=1000
  2. Receive error:
    ERROR conduwuit_core::error::response: Server error, error: cannot parse integer from empty string, error_debug: cannot parse integer from empty string, kind: Unknown, status: 500 Internal Server Error
    at src/core/error/response.rs:17
    ERROR conduwuit_router::request: 500 Internal Server Error, method: GET, uri: /_matrix/client/v1/rooms/{roomId}/relations/{eventId}/m.thread?from=&limit=1000
    at src/router/request.rs:105

Server name and version

lvndr.cl v26.8.1 (revision ab3c05d, built 2026-08-23)

Additional context

Running into this issue when trying to use baibot with a local llm. Please let me know if you need anymore information. Thanks!

### What is the bug? A GET request to the thread-relations endpoint with an empty from parameter causes a 500 Internal Server Error instead of being handled gracefully (e.g. treated the same as an omitted from). ### Steps to reproduce 1. Send a GET request like: GET /_matrix/client/v1/rooms/{roomId}/relations/{eventId}/m.thread?from=&limit=1000 2. Receive error: ERROR conduwuit_core::error::response: Server error, error: cannot parse integer from empty string, error_debug: cannot parse integer from empty string, kind: Unknown, status: 500 Internal Server Error at src/core/error/response.rs:17 ERROR conduwuit_router::request: 500 Internal Server Error, method: GET, uri: /_matrix/client/v1/rooms/{roomId}/relations/{eventId}/m.thread?from=&limit=1000 at src/router/request.rs:105 ### Server name and version lvndr.cl v26.8.1 (revision ab3c05d, built 2026-08-23) ### Additional context Running into this issue when trying to use baibot with a local llm. Please let me know if you need anymore information. Thanks!
Owner

Weird that it causes a 500, but `` is not a valid integer so it should return 400 M_INVALID_PARAM (note for whoever fixes this)

Weird that it causes a 500, but `` is not a valid integer so it should return `400 M_INVALID_PARAM` (note for whoever fixes this)
Sign in to join this conversation.
No milestone
No assignees
2 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#2217
No description provided.