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

Synapse doesn't pass errors from the identity server through to clients when verifying a phone number #11016

Open
matrixbot opened this issue Dec 19, 2023 · 0 comments

Comments

@matrixbot
Copy link
Collaborator

matrixbot commented Dec 19, 2023

This issue has been migrated from #11016.


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):

https://github.com/matrix-org/synapse/blob/a0f48ee89d88fd7b6da8023dbba607a69073152e/synapse/handlers/identity.py#L631-L633

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:

image

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:

https://github.com/matrix-org/synapse/blob/a0f48ee89d88fd7b6da8023dbba607a69073152e/synapse/handlers/identity.py#L535-L537

@matrixbot matrixbot changed the title Dummy issue Synapse doesn't pass errors from the identity server through to clients when verifying a phone number Dec 21, 2023
@matrixbot matrixbot reopened this Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant