cosmetic bug: ERROR in media download #1318

Open
opened 2026-01-27 23:41:49 +00:00 by nex · 1 comment
Owner

A minor cosmetic/non-functional regression from #1298:

  2026-01-27T23:37:50.280772Z ERROR conduwuit_router::request: 500 Internal Server Error, method: GET, uri: /_matrix/client/v1/media/download/tapenet.org/CyWpFrYXzysLtmbeHMoGleZD
    at src/router/request.rs:105 on conduwuit:worker ThreadId(2)
  2026-01-27T23:37:50.280867Z ERROR tower_http::trace::on_failure: response failed, classification: Status code: 500 Internal Server Error, latency: 190 ms
    at /home/nex/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tower-http-0.6.8/src/trace/on_failure.rs:93 on conduwuit:worker ThreadId(2)

This should probably be 404 / M_NOT_FOUND, instead the raw federation error of "failed to fetch" is returned:

{"errcode":"M_UNKNOWN","error":"Request error: error sending request"}

This is cosmetic because the end result is the same (can't download media), but it makes unseemly log entries each time

A minor cosmetic/non-functional regression from #1298: ``` 2026-01-27T23:37:50.280772Z ERROR conduwuit_router::request: 500 Internal Server Error, method: GET, uri: /_matrix/client/v1/media/download/tapenet.org/CyWpFrYXzysLtmbeHMoGleZD at src/router/request.rs:105 on conduwuit:worker ThreadId(2) 2026-01-27T23:37:50.280867Z ERROR tower_http::trace::on_failure: response failed, classification: Status code: 500 Internal Server Error, latency: 190 ms at /home/nex/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tower-http-0.6.8/src/trace/on_failure.rs:93 on conduwuit:worker ThreadId(2) ``` This should probably be `404 / M_NOT_FOUND`, instead the raw federation error of "failed to fetch" is returned: ``` {"errcode":"M_UNKNOWN","error":"Request error: error sending request"} ``` This is cosmetic because the end result is the same (can't download media), but it makes unseemly log entries each time
Author
Owner

Re-opening: while the /download/ route was fixed, thumbnails were not.

Re-opening: while the `/download/` route was fixed, thumbnails were not.
nex reopened this issue 2026-03-14 22:21:36 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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#1318
No description provided.