django-rest-auth icon indicating copy to clipboard operation
django-rest-auth copied to clipboard

error Unauthorized: /rest-auth/registration/ [06/Jun/2019 19:08:58] "POST /rest-auth/registration/ HTTP/1.1" 401 27

Open kimutaiRop opened this issue 5 years ago • 1 comments

I am tring to use the rest auth to create user but am getting error Unauthorized: /rest-auth/registration/ [06/Jun/2019 19:08:58] "POST /rest-auth/registration/ HTTP/1.1" 401 27

logging in user with rest frameworks works fie my url is

path('rest-auth/registration/', include('rest_auth.registration.urls')),

kimutaiRop avatar Jun 06 '19 19:06 kimutaiRop

I have a user getting the same 401 error when trying to create an account using that endpoint. My current theory is that it might be the result of sending a POST request and not submitting an auth token along with the request, but I can't see anywhere in the RegisterView() class that would return a 401.

I've only encountered one user having this error, but it seems strange and I can't trace it.

nathanielastudillo avatar Dec 17 '20 23:12 nathanielastudillo