Delete account fails
- Dominant language
- Python
- Stars
- 13
- Forks
- 17
- Avg merge
- 6h 59m
- Merged PRs (30d)
- 1
Description
> [!NOTE]
> Migrated from [augurlabs/augur#2672](https://github.com/augurlabs/augur/issues/2672)
> Originally opened by `@jarrah42` on 2024-01-30
---
Trying to delete an account results in 500 - Internal Server Error
**How to reproduce:**
1. Go to username -> Profile
2. Click on 'Delete Account'
3. Click on 'Click again to confirm deletion'
The following error is displayed:
```
File "/home/ubuntu/github/virtualenvs/hosted/lib/python3.10/site-packages/flask/app.py", line 2073, in wsgi_app
response = self.full_dispatch_request()
File "/home/ubuntu/github/virtualenvs/hosted/lib/python3.10/site-packages/flask/app.py", line 1518, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/ubuntu/github/virtualenvs/hosted/lib/python3.10/site-packages/flask_cors/extension.py", line 165, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File "/home/ubuntu/github/virtualenvs/hosted/lib/python3.10/site-packages/flask/app.py", line 1516, in full_dispatch_request
rv = self.dispatch_request()
File "/home/ubuntu/github/virtualenvs/hosted/lib/python3.10/site-packages/flask/app.py", line 1502, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "/home/ubuntu/github/virtualenvs/hosted/lib/python3.10/site-packages/flask_login/utils.py", line 272, in decorated_view
return func(*args, **kwargs)
File "/home/ubuntu/github/augur/augur/api/view/routes.py", line 205, in user_delete
if current_user.delete()[0]:
```
Contributor guide
Assessment
This issue has not been assessed yet.