Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Authorization header could not be parsed. #262

Open
Paulpatou opened this issue Apr 30, 2019 · 1 comment
Open

The Authorization header could not be parsed. #262

Paulpatou opened this issue Apr 30, 2019 · 1 comment
Labels

Comments

@Paulpatou
Copy link

Hi
I have this error after restarting docker.
Do you have any ideas?


400 Bad Request

The Authorization header could not be parsed.

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/cherrypy/_cprequest.py", line 667, in respond
    self.hooks.run('before_handler')
  File "/usr/lib/python2.7/site-packages/cherrypy/_cprequest.py", line 114, in run
    raise exc
HTTPError: (400, 'The Authorization header could not be parsed.')

@bcoles
Copy link
Contributor

bcoles commented May 30, 2019

This happens when your browser is sending empty credentials in the Authorization header.

If you aren't prompted for credentials, it is likely that you've attempted to authenticate with blank credentials, which your browser has cached. Clearing your cache should resolve the issue.

This is a bug and should be fixed.

The error can be reproduced with the following command:

curl -isk http://127.0.0.1:5001/ -H 'Authorization: Digest username="", realm="' 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants