You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this might be the same thing as #86, but since I'm using different packages, I thought I'd report it anyway.
I'm using Flask-RESTful for some of my API work and I'm getting 500 returned for things like ExpiredSignatureError. I just got this when using with a react admin app I've written:
cs_1 | Traceback (most recent call last):
cs_1 | File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1813, in full_dispatch_request
cs_1 | rv = self.dispatch_request()
cs_1 | File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1799, in dispatch_request
cs_1 | return self.view_functions[rule.endpoint](**req.view_args)
cs_1 | File "/usr/local/lib/python2.7/site-packages/flask_restful/__init__.py", line 480, in wrapper
cs_1 | resp = resource(*args, **kwargs)
cs_1 | File "/usr/local/lib/python2.7/site-packages/flask/views.py", line 88, in view
cs_1 | return self.dispatch_request(*args, **kwargs)
cs_1 | File "/usr/local/lib/python2.7/site-packages/flask_restful/__init__.py", line 595, in dispatch_request
cs_1 | resp = meth(*args, **kwargs)
cs_1 | File "/usr/local/lib/python2.7/site-packages/flask_jwt_extended/view_decorators.py", line 102, in wrapper
cs_1 | verify_jwt_in_request()
cs_1 | File "/usr/local/lib/python2.7/site-packages/flask_jwt_extended/view_decorators.py", line 31, in verify_jwt_in_request
cs_1 | jwt_data = _decode_jwt_from_request(request_type='access')
cs_1 | File "/usr/local/lib/python2.7/site-packages/flask_jwt_extended/view_decorators.py", line 265, in _decode_jwt_from_request
cs_1 | decoded_token = decode_function()
cs_1 | File "/usr/local/lib/python2.7/site-packages/flask_jwt_extended/view_decorators.py", line 194, in _decode_jwt_from_headers
cs_1 | return decode_token(encoded_token)
cs_1 | File "/usr/local/lib/python2.7/site-packages/flask_jwt_extended/utils.py", line 77, in decode_token
cs_1 | encoded_token, verify=False, algorithms=config.algorithm
cs_1 | File "/usr/local/lib/python2.7/site-packages/jwt/api_jwt.py", line 85, in decode
cs_1 | payload, _, _, _ = self._load(jwt)
cs_1 | File "/usr/local/lib/python2.7/site-packages/jwt/api_jws.py", line 184, in _load
cs_1 | raise DecodeError('Not enough segments')
cs_1 | DecodeError: Not enough segments
As a test, I downgraded back to 3.5.0, which I had been using for a while, and am not seeing the issues.
The text was updated successfully, but these errors were encountered:
Thanks! I think that fixed it. I hadn't read all of the release notes, but I see this was done to work around issues in Flask-RESTFul. Sorry about that!
No problem, glad that fixed things up for you. I’m going to close this issue now, but don’t hesitate to re-open it or create a new one if you run into other problems.
I think this might be the same thing as #86, but since I'm using different packages, I thought I'd report it anyway.
I'm using Flask-RESTful for some of my API work and I'm getting 500 returned for things like
ExpiredSignatureError
. I just got this when using with a react admin app I've written:As a test, I downgraded back to 3.5.0, which I had been using for a while, and am not seeing the issues.
The text was updated successfully, but these errors were encountered: