Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

raise exception if invalid json in body#71

Open
jbouzekri wants to merge 1 commit intopallets-eco:masterfrom
weenect:invalid-json
Open

raise exception if invalid json in body#71
jbouzekri wants to merge 1 commit intopallets-eco:masterfrom
weenect:invalid-json

Conversation

@jbouzekri
Copy link
Copy Markdown

It was throwing this error :

Traceback (most recent call last):
  File "/home/jobou/workspace/weenect-api/venv/lib/python3.4/site-packages/flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/jobou/workspace/weenect-api/venv/lib/python3.4/site-packages/flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/jobou/workspace/weenect-api/venv/lib/python3.4/site-packages/flask_jwt/__init__.py", line 115, in _default_auth_request_handler
    username = data.get(current_app.config.get('JWT_AUTH_USERNAME_KEY'), None)
AttributeError: 'NoneType' object has no attribute 'get'

@stephane
Copy link
Copy Markdown

stephane commented Aug 3, 2016

Merged with #70 in my current fork https://github.com/webstack/flask-jwt/commits/fork

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants