question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Activation TypeError

See original GitHub issue

Hello! 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:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

7reactions
KaczuHcommented, Jan 29, 2019

Yup, as i said earlier. Your SERIALIZERS config is incorrect. Refer to my earlier comment. Just remove SERIALIZERS from your config and djoser will assume default serializers.

0reactions
DmitryMakecommented, Jan 29, 2019

@KaczuH It works, Thank you!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found