HumanSignal / HumanSignal/label-studio

User has no auth_token

Open
#7,709 1 comment 0 reactions 0 assignees View on GitHub
community_investigate community_reviewed
Dominant language
TypeScript
Stars
28.3k
Forks
3.7k
Avg merge
14h
Merged PRs (30d)
15

Description

**Describe the bug**
```
{"id":"7b334a31-b7a5-4f7b-aef6-c3ea8b93aa76","status_code":500,"version":"1.18.0","detail":"User has no auth_token.","exc_info":"Traceback (most recent call last):\n File \"/label-studio/.venv/lib/python3.12/site-packages/rest_framework/views.py\", line 506, in dispatch\n response = handler(request, *args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/label-studio/.venv/lib/python3.12/site-packages/django/utils/decorators.py\", line 48, in _wrapper\n return bound_method(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/label-studio/label_studio/data_export/api.py\", line 206, in get\n export_file, content_type, filename = DataExport.generate_export_file(\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/label-studio/label_studio/data_export/models.py\", line 164, in generate_export_file\n access_token=project.organization.created_by.auth_token.key,\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/label-studio/.venv/lib/python3.12/site-packages/django/db/models/fields/related_descriptors.py\", line 531, in __get__\n raise self.RelatedObjectDoesNotExist(\nusers.models.User.auth_token.RelatedObjectDoesNotExist: User has no auth_token.. Did you mean: 'get_token'?\n"}
```
cannot find user token when jumping my label studio deployment to newest version. Probably because there are some database changes since I just postgres, what is the changes?

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Environment (please complete the following information):**
- OS: [e.g. iOS]
- Label Studio Version [e.g. 0.8.0]

**Additional context**
Add any other context about the problem here.

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.