{"action":"created","issue":{"url":"https://api.github.com/repos/vimalloc/flask-jwt-extended/issues/86","repository_url":"https://api.github.com/repos/vimalloc/flask-jwt-extended","labels_url":"https://api.github.com/repos/vimalloc/flask-jwt-extended/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/vimalloc/flask-jwt-extended/issues/86/comments","events_url":"https://api.github.com/repos/vimalloc/flask-jwt-extended/issues/86/events","html_url":"https://github.com/vimalloc/flask-jwt-extended/issues/86","id":263840797,"node_id":"MDU6SXNzdWUyNjM4NDA3OTc=","number":86,"title":"Errors (i.e. 401) not returned","user":{"login":"cloud-rocket","id":2440892,"node_id":"MDQ6VXNlcjI0NDA4OTI=","avatar_url":"https://avatars3.githubusercontent.com/u/2440892?v=4","gravatar_id":"","url":"https://api.github.com/users/cloud-rocket","html_url":"https://github.com/cloud-rocket","followers_url":"https://api.github.com/users/cloud-rocket/followers","following_url":"https://api.github.com/users/cloud-rocket/following{/other_user}","gists_url":"https://api.github.com/users/cloud-rocket/gists{/gist_id}","starred_url":"https://api.github.com/users/cloud-rocket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloud-rocket/subscriptions","organizations_url":"https://api.github.com/users/cloud-rocket/orgs","repos_url":"https://api.github.com/users/cloud-rocket/repos","events_url":"https://api.github.com/users/cloud-rocket/events{/privacy}","received_events_url":"https://api.github.com/users/cloud-rocket/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":20,"created_at":"2017-10-09T10:00:02Z","updated_at":"2019-07-10T20:13:03Z","closed_at":null,"author_association":"NONE","body":"It looks to me that this part is not yet implemented:\r\n\r\n```\r\ndef jwt_required(fn):\r\n    @wraps(fn)\r\n    def wrapper(*args, **kwargs):\r\n        jwt_data = _decode_jwt_from_request(request_type='access')\r\n        ctx_stack.top.jwt = jwt_data\r\n        _load_user(jwt_data[config.identity_claim])\r\n        return fn(*args, **kwargs)\r\n    return wrapper\r\n```\r\nThe upper code raises many different exceptions, but I don't see any code returning the errors (my own default error handling of restplus triggers 500 error every time).\r\n\r\nThe documentation states that:\r\n\r\n> If the access token is not valid for any reason (missing, expired, tampered with, etc) we will return json in the format of {‘msg’: ‘why accessing endpoint failed’} along with an appropriate http status code (generally 401 or 422).\r\n \r\n\r\nDefault callbacks are all provided, but never returned.\r\n\r\nAm I wrong?\r\n\r\nThanks,\r\nMeir Tseitlin"},"comment":{"url":"https://api.github.com/repos/vimalloc/flask-jwt-extended/issues/comments/510211073","html_url":"https://github.com/vimalloc/flask-jwt-extended/issues/86#issuecomment-510211073","issue_url":"https://api.github.com/repos/vimalloc/flask-jwt-extended/issues/86","id":510211073,"node_id":"MDEyOklzc3VlQ29tbWVudDUxMDIxMTA3Mw==","user":{"login":"vimalloc","id":238933,"node_id":"MDQ6VXNlcjIzODkzMw==","avatar_url":"https://avatars3.githubusercontent.com/u/238933?v=4","gravatar_id":"","url":"https://api.github.com/users/vimalloc","html_url":"https://github.com/vimalloc","followers_url":"https://api.github.com/users/vimalloc/followers","following_url":"https://api.github.com/users/vimalloc/following{/other_user}","gists_url":"https://api.github.com/users/vimalloc/gists{/gist_id}","starred_url":"https://api.github.com/users/vimalloc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vimalloc/subscriptions","organizations_url":"https://api.github.com/users/vimalloc/orgs","repos_url":"https://api.github.com/users/vimalloc/repos","events_url":"https://api.github.com/users/vimalloc/events{/privacy}","received_events_url":"https://api.github.com/users/vimalloc/received_events","type":"User","site_admin":false},"created_at":"2019-07-10T20:13:03Z","updated_at":"2019-07-10T20:13:03Z","author_association":"OWNER","body":"Are you using python3? That work around doesn't work for python2 for whatever reason."}}
{"actor":{"display_login":"vimalloc"}}