bug: 500 Internal Server Error on /relations/.../m.thread when from query param is empty #2217
Labels
No labels
Abandoned
Blocked
Bug
Changelog
Added
Changelog
Missing
Changelog
None
Cherry-picking
Compliance
Database
Dependencies
Dependencies/Renovate
Difficulty
Easy
Difficulty
Hard
Difficulty
Medium
Documentation
Enhancement
Good first issue
Help wanted
Inherited
Matrix/Administration
Matrix/Appservices
Matrix/Auth
Matrix/Client
Matrix/Core
Matrix/E2EE
Matrix/Federation
Matrix/Hydra
Matrix/MSC
Matrix/Media
Matrix/T&S
Merge
Merge/Manual
Merge/Squash
Meta
Meta/CI
Meta/Packaging
Priority
Blocking
Priority
High
Priority
Low
Security
Status
Confirmed
Status
Duplicate
Status
Invalid
Status
Needs Investigation
Support
bob the builder
No milestone
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
continuwuation/continuwuity#2217
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
GET /_matrix/client/v1/rooms/{roomId}/relations/{eventId}/m.thread?from=&limit=1000
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!
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)500 Internal Server Error("invalid digit found in string") when passing a malformed string to thefromparameter in/messages#2530