Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I got error when Building sahara UI

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

Environment:

Request Method: GET Request URL: http://140.115.187.151/dashboard/sahara/

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/base.py" in get_response 109. response = callback(request, callback_args, *callback_kwargs) File "/usr/lib/python2.6/site-packages/horizon/decorators.py" in dec 38. return view_func(request, args, *kwargs) File "/usr/lib/python2.6/site-packages/horizon/decorators.py" in dec 54. return view_func(request, args, *kwargs) File "/usr/lib/python2.6/site-packages/horizon/decorators.py" in dec 38. return view_func(request, args, *kwargs) File "/usr/lib/python2.6/site-packages/django/views/generic/base.py" in view 48. return self.dispatch(request, args, *kwargs) File "/usr/lib/python2.6/site-packages/django/views/generic/base.py" in dispatch 69. return handler(request, args, *kwargs) File "/usr/lib/python2.6/site-packages/horizon/tables/views.py" in get 154. handled = self.construct_tables() File "/usr/lib/python2.6/site-packages/horizon/tables/views.py" in construct_tables 145. handled = self.handle_table(table) File "/usr/lib/python2.6/site-packages/horizon/tables/views.py" in handle_table 118. data = self._get_data_dict() File "/usr/lib/python2.6/site-packages/horizon/tables/views.py" in _get_data_dict 181. self._data = {self.table_class._meta.name: self.get_data()} File "/usr/lib/python2.6/site-packages/saharadashboard/clusters/views.py" in get_data 38. clusters = sahara.clusters.list() File "/usr/lib/python2.6/site-packages/saharaclient/api/clusters.py" in list 68. return self._list('/clusters', 'clusters') File "/usr/lib/python2.6/site-packages/saharaclient/api/base.py" in _list 108. self._raise_api_exception(resp) File "/usr/lib/python2.6/site-packages/saharaclient/api/base.py" in _raise_api_exception 132. error_data = get_json(resp) File "/usr/lib/python2.6/site-packages/saharaclient/api/base.py" in get_json 145. return response.json() File "/usr/lib/python2.6/site-packages/requests/models.py" in json 604. return json.loads(self.text or self.content) File "/usr/lib64/python2.6/site-packages/simplejson/__init__.py" in loads 307. return _default_decoder.decode(s) File "/usr/lib64/python2.6/site-packages/simplejson/decoder.py" in decode 335. obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib64/python2.6/site-packages/simplejson/decoder.py" 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