Activation TypeError
See original GitHub issueHello! I’m trying to connect Djoser package to my project now. Everything is fine except user activation.
I get an email with activation url:
http://127.0.0.1:8000/#/activate/Mg/53a-9d4488a0cab2137035e2
As I understand it is supposed to work as a front-end activation page from my Djoser settings.
So i trey to make a POST:
curl -d "uid=Mg&token=53a-9d4488a0cab2137035e2" http://127.0.0.1:8000/auth/users/activate/
And catch a TypeError:
`TypeError at /auth/users/activate/
__init__() got an unexpected keyword argument 'data'`
Exception Type: TypeError at /auth/users/activate/
Exception Value: __init__() got an unexpected keyword argument 'data
…
Request information:
USER: AnonymousUser
GET: No GET data
POST:
uid = 'Mg'
token = '53a-9d4488a0cab2137035e2'
What am I doing wrong? Thanks!
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Extension activation failed on TypeError · Issue #5344 - GitHub
Try to open a notebook document in VS Code. Expected behaviour. Document opens. Actual behaviour. Document opens and the following is printed to...
Read more >Getting an error in Activation function "TypeError: 'Tensor ...
I am trying to use the relu activation function in pytorch LSTM but getting the error on " Tensor object is not callable....
Read more >Activation not possible / issue with PHP8? - WordPress.org
I get the following error on activation: Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback,…
Read more >Why am I receiving an error message when activating Studio ...
Why am I receiving an error message when activating Studio One that asks me to log into my.presonus.com and agree to the most...
Read more >TypeError: activation() missing 1 required positional argument ...
I'm trying to run my data on a custom dataset. This dataset has input tensors with 5 channels. So after creating my dataloaders, ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yup, as i said earlier. Your
SERIALIZERS
config is incorrect. Refer to my earlier comment. Just removeSERIALIZERS
from your config and djoser will assume default serializers.@KaczuH It works, Thank you!