Skip to content

Exception error related to PyJWT version #238

@abathur

Description

@abathur

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions