Ask Your Question
0

'unicode' object does not support item assignment (HTTP 400) (Request-ID: req-ccf9d2b6-0801-45fd-9000-7feb3783eedc)

asked 2017-09-19 22:27:43 -0600

liaodalin19903 gravatar image

updated 2017-09-19 22:50:53 -0600

From the openstack keystone client management doc:

I use openstack user list to check the users in openstack, but get the bellow errors:

'unicode' object does not support item assignment (HTTP 400) (Request-ID: req-ccf9d2b6-0801-45fd-9000-7feb3783eedc)

Why get this issue? its strange.

In the openstack cloud mariadb's keystone database, I selected * from user, get the bellow information:

image description

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-09-20 03:23:50 -0600

liaodalin19903 gravatar image

At last I find the extra data format of several row is wrong .

See the user's extra column in the snapshot. the data is like bellow:

{"email": "xxxx@xx.com", "links":"http://103.x5.xx.1/user_resource/liaoss07"}

But should pay attention the links should not like that, so, I set the extra to {} which extra is like this abnormal.

my solution is :

UPDATE user SET extra='{}' WHERE id=xxx

and you can leave the email in the {} too.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2017-09-19 22:27:43 -0600

Seen: 110 times

Last updated: Sep 20 '17