question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`/account/deactivate` is 500ing

See original GitHub issue

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

File "/home/synapse/src/synapse/http/server.py", line 368, in _async_render_wrapper
    callback_return = await self._async_render(request)
  File "/home/synapse/src/synapse/http/server.py", line 574, in _async_render
    callback_return = await raw_callback_return
  File "/home/synapse/src/synapse/rest/client/_base.py", line 99, in wrapped
    return await orig(*args, **kwargs)
  File "/home/synapse/src/synapse/rest/client/account.py", line 316, in on_POST
    await self.auth_handler.validate_user_via_ui_auth(
  File "/home/synapse/src/synapse/handlers/auth.py", line 344, in validate_user_via_ui_auth
    result, params, session_id = await self.check_ui_auth(
  File "/home/synapse/src/synapse/handlers/auth.py", line 470, in check_ui_auth
    if "session" in authdict:
TypeError: argument of type 'NoneType' is not iterable

Anything else that would be useful to know?

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
DMRobertsoncommented, Aug 19, 2022

Suspect my pydantic changes in #13188.

0reactions
DMRobertsoncommented, Aug 22, 2022

It’s unfortunate that the user-provided fields live at the same level on the request body, rather than being quarantined into some extras field. I.e. we have

{
    "auth": { ... },
    "id_server": "id.example.com",
    "extra_1": 1,
    "extra_2": 2,
}

rather than e.g.

{
    "auth": { ... },
    "id_server": "id.example.com",
    "extras": {
        "extra_1": 1,
        "extra_2": 2,
    }
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Temporarily deactivate your Instagram account
If you temporarily deactivate your account, your profile, photos, comments and likes will be hidden until you reactivate it by logging back in....
Read more >
How to Reactivate or Deactivate an account in CareerBuilder
To deactivate an account in CareerBuilder, click on the Deactivate link, under Actions, for the account in question. Please Note: If an account...
Read more >
How do I temporarily deactivate my Facebook account?
Click Privacy, then click Your Facebook Information. Click Deactivation and Deletion. Choose Deactivate Account, then click Continue to Account Deactivation ...
Read more >
Instagram: How to delete or deactivate your account
Scroll down, then click or tap “Temporarily disable my account” in the bottom right. 4. Choose the reason you are deactivating your account...
Read more >
Delete your account - Login.gov
After you delete your account, you will not be able to sign in to the government applications that you normally use your Login.gov...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found