Error: "non_field_errors": [ "No active account found with the given credentials" ]

See original GitHub issue

Winter is coming :v I was using this library and after installing and following everything written on the README.md I got the above error.

First I tried with the following config.

Config:

Django                        2.2
djangorestframework           3.9.2
djangorestframework-simplejwt 4.1.3 

And I was getting the error:

“non_field_errors”: [ “No active account found with the given credentials” ]

And the server log was:

Bad Request: /api/token/ [12/Apr/2019 02:52:32] “POST /api/token/ HTTP/1.1” 400 7572

Then I changed to the following config:

Django                        2.1.3  
djangorestframework           3.9.0  
djangorestframework-simplejwt 4.1.5 

And I still get the above-mentioned error. The problem is I couldn’t find mentioned error related anything in this repository!!!

What might be the problem?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
davesquecommented, Apr 14, 2019

You would need to make some kind of sign-up or registration form. This library is for authentication and assumes that your app already has registration features and a database of user credentials.

0reactions
haichong98commented, Oct 13, 2019
Read more comments on GitHub >

github_iconTop Results From Across the Web

Django drf simple-jwt authentication"detail": "No active ...
Your error says no active account found with the given credentials meaning you should check your database if users are accurately being stored...
Read more >
'No active account found with the given credentials' throws ...
September 10th, 2021 -- I have the same problem. Simple JWT version is 4.8.0. User was created with username "token" and with password...
Read more >
No active account found with the given cred - YouTube
Django : Django drf simple-jwt authentication"detail": " No active account found with the given credentials " [ Beautify Your Computer ...
Read more >
Django drf simple-jwt authentication”detail”: “No active ...
on login process, it returns error that "detail": "No active account found with the given credentials" all my users were active. I have...
Read more >
Testing tools - Django documentation
Test that a given request is rendered by a given Django template, with a template context that contains certain values. Note that the...
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