-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/account/deactivate
is 500ing
#13560
Comments
Looks like this broke on Wednesday morning; the first failing req was at 2022-08-17 09:57:26,485Z |
Suspect my pydantic changes in #13188. |
Ah. This should illustrate the root cause of the problem: >>> body = DeactivateAccountRestServlet.PostBody.parse_obj({})
>>> body.dict()
{'auth': None, 'id_server': None, 'erase': False} This then causes the following lines a problem: authdict = clientdict.pop("auth", {})
if "session" in authdict: If |
|
/account/deactivate
is 500ing
It's unfortunate that the user-provided fields live at the same level on the request body, rather than being quarantined into some
rather than e.g.
|
Description
Almost all requests to /_matrix/client/r0/account/deactivate on matrix.org failing with 500.
Steps to reproduce
deactivate an account (might need to be social login); watch 500.
Homeserver
matrix.org
Synapse Version
1.65.0 (b=matrix-org-hotfixes,d20c92d2c2)
Installation Method
No response
Platform
debian
Relevant log output
Anything else that would be useful to know?
No response
The text was updated successfully, but these errors were encountered: