matrix-org / synapse

Synapse: Matrix homeserver written in Python/Twisted.
https://matrix-org.github.io/synapse
Apache License 2.0
11.83k stars 2.13k forks source link

502 error when accepting federated PM #16514

Closed progval closed 1 year ago

progval commented 1 year ago

Description

Someone on rezosup.net PMed me. When clicking "Start chatting" in Element, I get:

Failed to join There was an error joining.

The network debugger shows a POST to https://matrix-client.matrix.org/_matrix/client/v3/join/!ZseQnwDQbufOjQPGtk%3Arezosup.net which fails with:

Bad gateway Error code 502 Visit cloudflare.com for more information. 2023-10-17 19:40:46 UTC You Browser Working Paris Cloudflare Working matrix-client.matrix.org Host Error What happened?

The web server reported a bad gateway error. What can I do?

Please try again in a few minutes.

Cloudflare Ray ID: 817b03e35b240636 • Your IP: 51.159.34.167 • Performance & security by Cloudflare

Steps to reproduce

Accept a PM from rezosup.net on matrix.org

Homeserver

matrix.org

Synapse Version

1.95.0rc1 (b=matrix-org-hotfixes,f53ef106c0)

Installation Method

I don't know

Database

postgresql

Workers

I don't know

Platform

matrix.org

Configuration

No response

Relevant log output

n/a

Anything else that would be useful to know?

No response

DMRobertson commented 1 year ago

I'm not sure if this is the right place for matrix.org operational issues... but I don't think we have a better place for it at the moment.

I can't see any requests for that room ID in the matrix.org Synapse logs. The reverse proxy logs have already rotated out, and I can't find any logs in Cloudflare matching that ray ID.

Given that, I think (unfortunately) there's not much we can do to action this.

(It would be nice if the client handled the 502 more gracefully by retrying or telling you to retry in a few minutes.)