Bad Request: hash must be unicode or bytes, not None

asked 2013-09-25 07:19:54 -0600

vs.tokarev gravatar image

Hi everyone.

I'm going to use RESTFull API to manage my OpenStack cloud and now I'm using devstack during development.

Today I got this error message, "Bad Request: hash must be unicode or bytes, not None" when I tried to authenticate. Here is what I did:

  1. Logged in as 'admin'.
  2. Created new tenant 'company001'.
  3. Created new user 'user001'.
  4. Added 'admin' role for user001 on company001.
  5. Tried to log in as 'user001'

I got response code 400 and just this error message. I have no idea what does 'hash' mean in this message and I was not able to find anything related to this error in docs. Please, help.

edit retag flag offensive close merge delete


Can you provide some details like branch of openstack/devstack installed, by 'log in' do you mean logging in through the dashboard or are you using REST API to generate the token. Also, providing Keystone service logs might help closing down on the issue.

unmesh-gurjar gravatar imageunmesh-gurjar ( 2013-09-26 06:51:46 -0600 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2018-04-06 08:52:56 -0600

edmondsw gravatar image

I suspect this was fixed by

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools


Asked: 2013-09-25 07:19:54 -0600

Seen: 502 times

Last updated: Apr 06 '18