sunscrapers / djoser

REST implementation of Django authentication system.
MIT License
2.54k stars 459 forks source link

getting 400/401 in create user #495

Open 1shaked opened 4 years ago

1shaked commented 4 years ago

so i tring to create a really simple app for understanding better how DRF is working and i choose to go with djoser for auth. my code is in the my repo https://github.com/1shaked/todo and i upload all of it to pythonanywhere. the server is still in development and i tring to create a simple GUI to interact with it backend https://www.pythonanywhere.com/ front https://elastic-jepsen-ca54ea.netlify.app/ so i am getting wired behavere sometimes i get 401 error unauthorized and sometimes 400 bad request and sometimes i can create a user and login... so isuue if i get 401 unauthorized why cause i should not get any token when creating the user and 400 it's not saying why? sometimes the same request is working when i am tring from diffrent platform like postman ,python or web browser when i run it localy it is working pls help thx in advance. it is worth notice this is only happen on production and i mostly get 401 unauthorized for creating user.

cvillavicencio01 commented 3 years ago

Have you found the solution?

Xinjie-Lan commented 3 years ago

Same issue Tried to print self.action in djoser/views.py def get_permissions(self): The result is None