Skip to content
Advertisement

djnoer gives TypeError: permission_denied() got an unexpected keyword argument ‘code’ on get request on /users/me/

Doing just a get request on auth/users/me/ results in this error which says the above. Couldn’t find anything that helps. Can you help me figure out where this error is coming from and how can I fix it. The link to the tutorial I was following is below. Just had setup a new project and installed djoner with jwt. Below is a detailed error message

Djoner link https://djoser.readthedocs.io/en/latest/sample_usage.html

JavaScript

settings.py

JavaScript

urls.py

JavaScript

views.py

JavaScript

Advertisement

Answer

This is a bug. It has been reported and fixed:

https://github.com/sunscrapers/djoser/issues/541

Happy coding.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement