[Solved] AttributeError: ‘str‘ object has no attribute ‘decode‘

Project scenario:

django2.2

SIMPLE_JWT


Problem description

report errors:

AttributeError: ‘str’ object has no attribute ‘decode’


Cause analysis:

Issue with django version


Solution:

Comment out the line that report error:

Read More: