-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Element tries to use the deprecated media endpoints on a server enacting the freeze #28011
Comments
I have the same issue. It does work with Element Desktop and the mobile apps, but my self-hosted Element Web instance fails due to the usage of the old API: It uses: |
One thing to note is that the browser devtools cannot be trusted here: there is a serviceworker which is supposed to rewrite the request, but that happens after the devtools that record the request. I'd suggest checking the server-side logs to verify which endpoint is actually being used |
From my Synapse logs:
|
This might be that the service worker hasn't registered, which can happen sometimes especially as we previously did have a service worker that didn't do anything and wasn't really registered properly. A hard reload or three would be worth a try. |
I tried it in browsers where Element Web was never loaded before and also unregistered the service worker in my regular browser. The problem still occured. Then I tried https://app.element.io and the pictures loaded on that instance. I compared https://app.element.io/sw.js with the service worker on my instance and the source code on my server was several times larger. I was running v1.11.75 from NixOS 24.05. Then I realized that v1.11.76 was pushed to stable. I upgraded my instance, now the authenticated images are loading and the |
🤷 started working sometime between then and now |
I see this problem on Safari, but it works fine from Brave, both on the same macOS device, with the latest element-web (logging into app.element.io). I checked the sw.js downloaded from both browsers, and |
The downloaded |
Not sure if its the same issue but since about two days I can't open new images (old image are loading fine). I am getting "Error downloading image". All involved parties are at |
That'll be why then, authenticated media is relatively new, so you need to be up to date if you are using a server which requires this. @HarHarLinks has stated it has started working for them so closing this issue. It seems to be one of using outdated clients or having a stuck serviceworker registration cached in their browser. |
I had the same issue. I just reinstalled element-desktop from Ubuntu apt repos and I had to pkill to get it to update. |
Steps to reproduce
i tried out setting
enable_authenticated_media: true
in a localhost synapse yesterday and logged in with app.element.io. element could not receive any media and watching the browser devtools network log i could see the requests using the old endpoints (and 404ing as i'd expect per synapse docs). checking synapse's versions there is v1.11 support and using curl i could also GET the media from the new endpoints. does someone know what's wrong? i have peers telling me it's working for them on their prod deployments that already enacted the "freeze".Outcome
What did you expect?
authenticated media
What happened instead?
unauthenticated media 404ing, no media
Operating system
arch
Browser information
Firefox 128
URL for webapp
app.element.io
Application version
Element version: 1.11.76 Crypto version: Rust SDK 0.7.1 (c8c9d15), Vodozemac 0.6.0
Homeserver
matrixdotorg/synapse:latest
Will you send logs?
Yes
The text was updated successfully, but these errors were encountered: