Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[UI] Auth Token Issues #8707

Open
SchrodingersGat opened this issue Dec 18, 2024 · 2 comments
Open

[UI] Auth Token Issues #8707

SchrodingersGat opened this issue Dec 18, 2024 · 2 comments
Assignees
Labels
bug Identifies a bug which needs to be addressed Platform UI Related to the React based User Interface
Milestone

Comments

@SchrodingersGat
Copy link
Member

SchrodingersGat commented Dec 18, 2024

Error message captured on the demo site (unsure of context)

Image

Traceback (most recent call last):

  File "/root/.local/lib/python3.11/site-packages/rest_framework/views.py", line 506, in dispatch
    response = handler(request, *args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/root/.local/lib/python3.11/site-packages/rest_framework/generics.py", line 190, in post
    return self.create(request, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/root/.local/lib/python3.11/site-packages/dj_rest_auth/registration/views.py", line 70, in create
    data = self.get_response_data(user)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/root/.local/lib/python3.11/site-packages/dj_rest_auth/registration/views.py", line 62, in get_response_data
    return api_settings.TOKEN_SERIALIZER(user.auth_token, context=self.get_serializer_context()).data
                                         ^^^^^^^^^^^^^^^

AttributeError: 'User' object has no attribute 'auth_token'
@SchrodingersGat SchrodingersGat added bug Identifies a bug which needs to be addressed question This is a question triage:not-checked Item was not checked by the core team Platform UI Related to the React based User Interface and removed question This is a question triage:not-checked Item was not checked by the core team labels Dec 18, 2024
@SchrodingersGat SchrodingersGat added this to the 1.0.0 milestone Dec 18, 2024
@matmair
Copy link
Member

matmair commented Dec 18, 2024

@SchrodingersGat you working on this or should I?

@SchrodingersGat
Copy link
Member Author

If you can take a look into it, that'd be good

@matmair matmair self-assigned this Dec 18, 2024
@matmair matmair modified the milestones: 1.0.0, 0.17.1 Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Identifies a bug which needs to be addressed Platform UI Related to the React based User Interface
Projects
None yet
Development

No branches or pull requests

2 participants