Skip to content
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

Exception error related to PyJWT version #238

Closed
abathur opened this issue Mar 29, 2019 · 1 comment
Closed

Exception error related to PyJWT version #238

abathur opened this issue Mar 29, 2019 · 1 comment

Comments

@abathur
Copy link
Contributor

abathur commented Mar 29, 2019

I'm not sure if this needs action, but I wanted to report it since it took us a few minutes to figure out and the note might spare someone else. We have a test/preview environment and recently pushed an update there that moved to a newer version of Flask-JWT-Extended (I'm not certain what this system was running before), and also added an error handler for InvalidSignatureError. We started seeing the following error:

@api.errorhandler(jwt_exception.InvalidSignatureError)
AttributeError: module 'jwt.exceptions' has no attribute 'InvalidSignatureError'

The ultimate issue was a difference between the installed versions of PyJWT; it's running fine in my dev environment with PyJWT==1.6.4, and the trouble environment had PyJWT==1.5.3.

I wondered when I bumped into this if any of the other hard-to-reproduce issues that have been reported might also come down to PyJWT version differences.

@vimalloc
Copy link
Owner

Awesome, thanks for the error report! I'll update the required dependencies of this extension to include PyJWT >= 1.6.4!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants