When trying to upload any image it says:
Error: Failed to upload image:
500: Internal Server Error
However uploading works fine in other clients, should I open an issue on the Photon repo, or is this a possible misconfiguration on this instance?
(sorry if I’m the only one that keeps bitching on this community XD, I’ve actually been enjoying my stay, so thanks for all that you’re doing!)
Hey! First of all, thank you for the meaningful and sufficient feedback 🙏
I just checked the error and Photon is using some kind of proxy for image uploads to (probably) get rid of CORS errors. It is causing the error.
I checked it on photon.lemmy.world and its same there too. But official app on phtn.app is working as expected.
Do we need to do anything extra for proxying @Xylight@lemmy.xylight.dev?
It’s not an issue on your end. It’s likely a rate limit issue.
Pict-rs requires a cookie for authentication, instead of a header or body parameter. You can’t set cookies when making requests browser side for security reasons, so I have it go through a proxy to take the auth parameter and make a proxies request with the parameter as a cookie.
Voyager has this issue too. I copied their code so I don’t know what the issue would be. Lemmy’s error messages reeeallly aren’t helpful.
Follow this issue for updates.
@iso@lemy.lol @Xylight@lemmy.xylight.dev thank you both for explaining