Skip to content
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

Http 500 Error on POST pictures #632

Closed
muellerjoel opened this issue Jul 16, 2023 · 11 comments
Closed

Http 500 Error on POST pictures #632

muellerjoel opened this issue Jul 16, 2023 · 11 comments
Labels
bug Something isn't working

Comments

@muellerjoel
Copy link

muellerjoel commented Jul 16, 2023

IMG_1388

@muellerjoel muellerjoel added the bug Something isn't working label Jul 16, 2023
@tulir
Copy link
Member

tulir commented Jul 16, 2023

That's an error in your homeserver

@tulir tulir closed this as not planned Won't fix, can't repro, duplicate, stale Jul 16, 2023
@muellerjoel
Copy link
Author

muellerjoel commented Jul 17, 2023

Are you shure? In private whatsapp rooms the pictures are shown normal

@tulir
Copy link
Member

tulir commented Jul 17, 2023

Yes, that's what "internal server error" means: the server that handled the request is broken. /_matrix/media/v3/upload is usually handled by the homeserver, or if you have a separate media repo then by that server.

@muellerjoel
Copy link
Author

Ok. Wired. Why should video work in the same broadcast room and pictures not and so pictures in normal bridge rooms too.

@muellerjoel
Copy link
Author

Ok i found out the error it’s about sqlite version. Sqlite 3.40 is all ok with 3.42 the internal error shows up

@Happyfeet01
Copy link

hi @muellerjoel

have the same error message with the generated QR Code. Can you tell me how you downgrade the Sqlite Version?

ERR Failed to upload QR code: failed to POST /_matrix/media/v3/upload: M_UNKNOWN (HTTP 500):

@muellerjoel
Copy link
Author

@Happyfeet01

Hi
Which Distro do you have?

For Arch Linux go to https://archive.archlinux.org browse s and go to the right sqlite version copy the url

do curl -o URL and then pacman -U sqlite-XXXXX

Restart synapse and the bridge with systemd service

Cheers

@uvolmer
Copy link

uvolmer commented Jul 21, 2023

I had the same error with a matrix synapse installed via pip.
Posting images to unencrypted rooms (like whatsapp) was not possible.
For me, this was solved by

pip install -U pillow==9.5.0

@Happyfeet01
Copy link

Happyfeet01 commented Jul 21, 2023

Thanks. That Works @uvolmer @muellerjoel

@blacklight
Copy link

Downgrading Pillow worked for me (but not downgrading SQLite).

Does anyone know why this bug started occurring in the first place? I can't see any details from the logs, and, even though downgrading Pillow is a workaround that works for now, I can't keep it on a lower version without breaking other Python system packages.

@uvolmer
Copy link

uvolmer commented Jul 24, 2023

The synapse bugreport of the pillow bug is below.
As far as I know, it is fixed in synapse version 1.88.0

matrix-org/synapse#15876

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

5 participants