chaoss / chaoss/CollectOSS

Delete account fails

Open
#31 2 comments 0 reactions 0 assignees View on GitHub
bug reproducible
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.