"Request did not validate Invalid bearer token: Auth expired": problème avec Mozilla Firefox et Chromium
Yo, j'ai un problème avec à la fois Firefox et Chromium (je viens de mettre à jour).
Les versions des paquets:
Flask-0.12.2-py3.6.egg/ asn1crypto-0.22.0-py3.6.egg cryptography-1.9-py3.6-linux-x86_64.egg/ idna-2.5-py3.6.egg portoloin.egg-link schedule-0.4.3-py3.6.egg
Jinja2-2.9.6-py3.6.egg/ certifi-2017.4.17-py3.6.egg/ easy-install.pth itsdangerous-0.24-py3.6.egg/ py_vapid-1.2.5-py3.6.egg/ setuptools/
MarkupSafe-1.0-py3.6-linux-x86_64.egg/ cffi-1.10.0-py3.6-linux-x86_64.egg/ easy_install.py pip/ pycparser-2.17-py3.6.egg/ setuptools-28.8.0.dist-info/
Werkzeug-0.12.2-py3.6.egg/ chardet-3.0.4-py3.6.egg ecdsa-0.13-py3.6.egg pip-9.0.1.dist-info/ pywebpush-1.0.5-py3.6.egg/ six-1.10.0-py3.6.egg/
__pycache__/ click-6.7-py3.6.egg/ http_ece-1.0.2-py3.6.egg pkg_resources/ requests-2.18.1-py3.6.egg/ urllib3-1.21.1-py3.6.egg/
Le message d'erreur:
(VirtualEnv) giskard@Vavatch Portoloin$ make run
FLASK_APP=main.py python -m flask run
No cache file found
fetching
### treated ###
* Serving Flask app "main"
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
127.0.0.1 - - [22/Jun/2017 12:14:13] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [22/Jun/2017 12:14:13] "GET /assets/theme.css HTTP/1.1" 200 -
127.0.0.1 - - [22/Jun/2017 12:14:13] "GET /assets/scripts/app.js HTTP/1.1" 200 -
127.0.0.1 - - [22/Jun/2017 12:14:13] "GET /assets/scripts/worker.js?x=897 HTTP/1.1" 200 -
127.0.0.1 - - [22/Jun/2017 12:14:13] "GET /favicon.ico HTTP/1.1" 404 -
127.0.0.1 - - [22/Jun/2017 12:14:20] "POST /register HTTP/1.1" 200 -
[2017-06-22 12:14:24,165] ERROR in app: Exception on /ping [POST]
Traceback (most recent call last):
File "/home/giskard/Informatique/Portoloin/VirtualEnv/lib/python3.6/site-packages/Flask-0.12.2-py3.6.egg/flask/app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File "/home/giskard/Informatique/Portoloin/VirtualEnv/lib/python3.6/site-packages/Flask-0.12.2-py3.6.egg/flask/app.py", line 1614, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/giskard/Informatique/Portoloin/VirtualEnv/lib/python3.6/site-packages/Flask-0.12.2-py3.6.egg/flask/app.py", line 1517, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/giskard/Informatique/Portoloin/VirtualEnv/lib/python3.6/site-packages/Flask-0.12.2-py3.6.egg/flask/_compat.py", line 33, in reraise
raise value
File "/home/giskard/Informatique/Portoloin/VirtualEnv/lib/python3.6/site-packages/Flask-0.12.2-py3.6.egg/flask/app.py", line 1612, in full_dispatch_request
rv = self.dispatch_request()
File "/home/giskard/Informatique/Portoloin/VirtualEnv/lib/python3.6/site-packages/Flask-0.12.2-py3.6.egg/flask/app.py", line 1598, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/home/giskard/Informatique/Portoloin/main.py", line 55, in ping
'sub': 'mailto:aliens@ens-lyon.fr'})
File "/home/giskard/Informatique/Portoloin/VirtualEnv/lib/python3.6/site-packages/pywebpush-1.0.5-py3.6.egg/pywebpush/__init__.py", line 360, in webpush
result, result.text))
pywebpush.WebPushException: Push failed: <Response [401]>: {"code": 401, "errno": 109, "error": "Unauthorized", "more_info": "http://autopush.readthedocs.io/en/latest/http.html#error-codes", "message": "Request did not validate Invalid bearer token: Auth expired"}
127.0.0.1 - - [22/Jun/2017 12:14:24] "POST /ping HTTP/1.1" 500 -