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
{{ message }}
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
If an identity server responds to a request with an error, e.g. with a message saying a validation token is invalid etc, Synapse doesn't pass it through to clients. Instead, it responds with a generic "Error contacting the identity server" error (with the M_UNKNOWN code):
raiseSynapseError(400, "Error contacting the identity server")
This creates a confusing user experience because clients can't do much other than printing out that generic message, which doesn't make it clear where the issue comes from:
Note that we correctly pass the error through when requesting a token for a phone number, so I don't think there should be an issue with doing the same here:
babolivier
added
S-Minor
Blocks non-critical functionality, workarounds exist.
T-Defect
Bugs, crashes, hangs, security vulnerabilities, or other reported issues.
labels
Oct 7, 2021
babolivier
changed the title
Synapse doesn't pass errors from the identity server through to clients
Synapse doesn't pass errors from the identity server through to clients when verifying a phone number
Oct 7, 2021
If an identity server responds to a request with an error, e.g. with a message saying a validation token is invalid etc, Synapse doesn't pass it through to clients. Instead, it responds with a generic "Error contacting the identity server" error (with the
M_UNKNOWN
code):synapse/synapse/handlers/identity.py
Lines 631 to 633 in a0f48ee
This creates a confusing user experience because clients can't do much other than printing out that generic message, which doesn't make it clear where the issue comes from:
Note that we correctly pass the error through when requesting a token for a phone number, so I don't think there should be an issue with doing the same here:
synapse/synapse/handlers/identity.py
Lines 535 to 537 in a0f48ee
The text was updated successfully, but these errors were encountered: