You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Suppose a homeserver responds with 502 or 504 behind Cloudflare. Cloudflare will serve their own HTML error page instead of the JSON data from the homeserver. We've seen examples of this where a response like
I'd argue that 502 is a valid error code in some circumstances for how the media repo is behaving, and wouldn't prohibit its use for those circumstances despite CloudFlare. Other error codes appear inappropriate when the homeserver is acting as a proxy to another server.
I've opened #1095 to track the issue with the media download endpoint, however I don't think we can reasonably prevent the use of the 502 error code at this time.
The only such specced response I can see is https://spec.matrix.org/v1.2/client-server-api/#get_matrixmediav3downloadservernamemediaid. (I only checked C-S and S-S APIs).
Suppose a homeserver responds with 502 or 504 behind Cloudflare. Cloudflare will serve their own HTML error page instead of the JSON data from the homeserver. We've seen examples of this where a response like
is rewritten and presented to clients as
which means the client can only present a generic "unknown error" at best.
I don't want to make the spec bound to the whims of any particular reverse proxy service, but for pragmatism's sake it might be worth considering
The text was updated successfully, but these errors were encountered: