Bug 498414 - Can't load media
Summary: Can't load media
Status: RESOLVED NOT A BUG
Alias: None
Product: NeoChat
Classification: Applications
Component: General (show other bugs)
Version: 24.08.1
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Tobias Fella
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-09 07:10 UTC by Alex Parker
Modified: 2025-01-09 22:14 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Parker 2025-01-09 07:10:33 UTC
SUMMARY
NeoChat not loading any media. All request to synapse for media ended with 404 error

STEPS TO REPRODUCE
1. Install NeoChat from Discover (jammy source)
2. Run neochat and connect to your own homeserver on synapse

OBSERVED RESULT
No media downloaded in neochat, only text messages

In Synapse logs I see this for every error of loading media
synapse.access.http.8008 - 508 - INFO - GET-312122 - <GATE_IP> - 8008 - {None} Processed request: 0.012sec/0.003sec (0.007sec, 0.000sec) (0.002sec/0.003sec/1) 45B 404 "GET /_matrix/media/v3/download/<My Matrix Server>/PvqFCeFEDCktNSOtXXmZQHFQ?allow_remote=true&timeout_ms=20000&allow_redirect=false HTTP/1.1" "Mozilla/5.0" [0 dbevts]


EXPECTED RESULT
All media must be loaded

For example, it's from Web Cinny App loading pictures from chat
synapse.access.http.8008 - 508 - INFO - GET-312126 - <GATE_IP> - 8008 - {@<My MXID>} Processed request: 0.029sec/-0.001sec (0.011sec, 0.001sec) (0.001sec/0.002sec/1) 43331B 200 "GET /_matrix/client/v1/media/download/<My Matrix Server>/PvqFCeFEDCktNSOtXXmZQHFQ?allow_redirect=true HTTP/1.1" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36" [0 dbevts]


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6
KDE Plasma Version: 6 
KDE Neon latest
Comment 1 Joshua Goins 2025-01-09 15:28:56 UTC
What version of synapse is your server? What version of libQuotient are you running? (If you do not know, you can view this under Settings > About NeoChat)

You're most likely running <0.9, which does not have auth media support.
Comment 2 Alex Parker 2025-01-09 21:26:30 UTC
(In reply to Joshua Goins from comment #1)
> What version of synapse is your server? 

/_synapse/admin/v1/server_version says:
`{"server_version":"1.121.1"}`
I use it inside docker from their image, so it fresh +-

> What version of libQuotient are you running?

`libQuotient  0.8.2 (built against 0.8.2)`

> You're most likely running <0.9, which does not have auth media support.

Thanks for quick finding reason of the problem.
So, when I used neochat installed from snap (or maybe flathub, don't remember) it was version 24.12.0, and there was no problem with loading media.

I will try flathub fresh version
Comment 3 Alex Parker 2025-01-09 22:14:19 UTC
Of couse in flathub fresh version there is no this problem, all media from same server loaded correctly. Version of libQuotient there is 0.9.2.

I stay on flathub version.