Ask Your Question

I got error when Building sahara UI

asked 2014-07-29 04:24:57 -0500

BetterFly gravatar image

I have created RDO and builded sahara UI follow (this)

Now I got an error,it's said ValueError at /sahara/ No JSON object could be decoded

Did anyone know how to solve?

Here is my error message


Request Method: GET Request URL:

Django Version: 1.4.13 Python Version: 2.6.6 Installed Applications: ['openstack_dashboard.dashboards.project', 'openstack_dashboard.dashboards.admin', 'openstack_dashboard.dashboards.settings', 'openstack_dashboard', 'django.contrib.contenttypes', 'django.contrib.auth', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.humanize', 'compressor', 'horizon', 'openstack_auth', 'saharadashboard'] Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'horizon.middleware.HorizonMiddleware', 'django.middleware.doc.XViewMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware')

Traceback: File "/usr/lib/python2.6/site-packages/django/core/handlers/" in get_response 109. response = callback(request, callback_args, *callback_kwargs) File "/usr/lib/python2.6/site-packages/horizon/" in dec 38. return view_func(request, args, *kwargs) File "/usr/lib/python2.6/site-packages/horizon/" in dec 54. return view_func(request, args, *kwargs) File "/usr/lib/python2.6/site-packages/horizon/" in dec 38. return view_func(request, args, *kwargs) File "/usr/lib/python2.6/site-packages/django/views/generic/" in view 48. return self.dispatch(request, args, *kwargs) File "/usr/lib/python2.6/site-packages/django/views/generic/" in dispatch 69. return handler(request, args, *kwargs) File "/usr/lib/python2.6/site-packages/horizon/tables/" in get 154. handled = self.construct_tables() File "/usr/lib/python2.6/site-packages/horizon/tables/" in construct_tables 145. handled = self.handle_table(table) File "/usr/lib/python2.6/site-packages/horizon/tables/" in handle_table 118. data = self._get_data_dict() File "/usr/lib/python2.6/site-packages/horizon/tables/" in _get_data_dict 181. self._data = { self.get_data()} File "/usr/lib/python2.6/site-packages/saharadashboard/clusters/" in get_data 38. clusters = sahara.clusters.list() File "/usr/lib/python2.6/site-packages/saharaclient/api/" in list 68. return self._list('/clusters', 'clusters') File "/usr/lib/python2.6/site-packages/saharaclient/api/" in _list 108. self._raise_api_exception(resp) File "/usr/lib/python2.6/site-packages/saharaclient/api/" in _raise_api_exception 132. error_data = get_json(resp) File "/usr/lib/python2.6/site-packages/saharaclient/api/" in get_json 145. return response.json() File "/usr/lib/python2.6/site-packages/requests/" in json 604. return json.loads(self.text or self.content) File "/usr/lib64/python2.6/site-packages/simplejson/" in loads 307. return _default_decoder.decode(s) File "/usr/lib64/python2.6/site-packages/simplejson/" in decode 335. obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib64/python2.6/site-packages/simplejson/" in raw_decode 353. raise ValueError("No JSON object could be decoded")

Exception Type: ValueError at /sahara/ Exception Value: No JSON object could be decoded

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-08-08 13:19:26 -0500

alazarev gravatar image

"No JSON object could be decoded" means that horizon expected JSON response but received something else. Most probably this is HTML 404 response. Please check that horizon configuration (or service catalog in keystone) points to the right URL of sahara. Also note that URL format was changed in icehouse and now pattern contains tenant id in URL (e.g. "$(tenant_id)s").

edit flag offensive delete link more


I've filed to improve error reporting.

alazarev gravatar imagealazarev ( 2014-08-11 15:46:02 -0500 )edit

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


Asked: 2014-07-29 04:24:57 -0500

Seen: 220 times

Last updated: Jul 29 '14