-
-
Notifications
You must be signed in to change notification settings - Fork 694
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected decode error jwt.exceptions.DecodeError: Invalid header string: ...
#799
Comments
UPDATE: I investigated more by adding some logs inside The value of the b'~U\xb7|\xa0o\x06\xf5\x97#\x80\xef`5\xaeq7o\x06\xf5\x95\x1eex\x02\xf5\xb6' I checked the {'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 |
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
The text was updated successfully, but these errors were encountered: