Open fabiocaccamo opened 2 years ago
UPDATE:
I investigated more by adding some logs inside jwt.api_jws
module before the error is raised.
The error is raised here: https://github.com/jpadilla/pyjwt/blob/master/jwt/api_jws.py#L261
The value of the header_data
variable is this:
b'~U\xb7|\xa0o\x06\xf5\x97#\x80\xef`5\xaeq7o\x06\xf5\x95\x1eex\x02\xf5\xb6'
I checked the header_data
encoding with chardet
and this is the result:
{'encoding': 'Windows-1252', 'confidence': 0.73, 'language': ''}
Hope this will help.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days
No more stale.
I observed a similar problem. I suspect that the user email program (Outlook it appears) is doing a 'pre-fetch' on the link (before the user clicks on it). However in this pre-fetch, Outlook is changing the jwt token to something bogus.
@teuf22 interesting...
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days
no more stale
I have the same issue and I have been trying to figure out what the problem is but the only information I can get from the traceback is the binascii error which say incorrect padding According to python it's the direct course of the error.
Thank you for this great library.
I have a project where I'm using this library for encoding/decoding tokens for resetting passwords. Everything works well, but the other day I got an unexpected error when a user clicked the password-reset-link sent via email. This is a very isolated case because it happened only once.
Actual Result
The following exception is raised:
Reproduction Steps
The encoded data is a dict containing just
user_pk
andexp
date, for example:System Information