23👍
Fixed the issue with PyJWT==2.1.0 and djangorestframework-simplejwt==4.8.0 in the requirements.txt:
PyJWT==2.1.0
djangorestframework-simplejwt==4.8.0
It may be noted that PyJWT 2.2.0 (Released: Oct 7, 2021) is causing the error. So pinning PyJWT<2.2 or alternatively PyJWT==2.1.0 in personal projects is a workaround for now, but ideally this would be either pinned appropriately here:
https://github.com/jazzband/djangorestframework-simplejwt/blob/master/setup.py#L59
or handled in source code.
- [Django]-Performing a getattr() style lookup in a django template
- [Django]-Django: For Loop to Iterate Form Fields
- [Django]-Django – comparing old and new field value before saving
2👍
The issue is coming from new release 2.2.0 (see https://github.com/jpadilla/pyjwt/issues/698)
Downgrading to pyjwt==2.1.0 will fix the issue.
- [Django]-How to set up a PostgreSQL database in Django
- [Django]-Django get a random object
- [Django]-Book for Django + Celery + RabbitMQ?
Source:stackexchange.com