Actions
Bug #38495
closedmgr/dashboard: API view is showing 'No API definition provided.'
% Done:
0%
Source:
Development
Tags:
dashboard
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Description
When I go to Help -> API I receive the message 'No API definition provided.' instead of the API view. I also found 'Failed to load resource: the server responded with a status of 500 (Internal Server Error)' in the console.
Updated by Tatjana Dehler about 5 years ago
Also found
{ status:"500 Internal Server Error", detail:"The server encountered an unexpected condition which prevented it from fulfilling the request.", traceback:"Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/cherrypy/_cprequest.py", line 670, in respond response.body = self.handler() File "/usr/lib/python3.7/site-packages/cherrypy/lib/encoding.py", line 221, in __call__ self.body = self.oldhandler(*args, **kwargs) File "/usr/lib/python3.7/site-packages/cherrypy/_cptools.py", line 237, in wrap return self.newhandler(innerfunc, *args, **kwargs) File "/ceph/src/pybind/mgr/dashboard/services/exception.py", line 88, in dashboard_exception_handler return handler(*args, **kwargs) File "/usr/lib/python3.7/site-packages/cherrypy/_cpdispatch.py", line 60, in __call__ return self.callable(*self.args, **self.kwargs) File "/ceph/src/pybind/mgr/dashboard/controllers/__init__.py", line 545, in inner ret = func(*args, **kwargs) File "/ceph/src/pybind/mgr/dashboard/controllers/docs.py", line 220, in api_json return self._gen_spec(False, "/api" ) File "/ceph/src/pybind/mgr/dashboard/controllers/docs.py", line 183, in _gen_spec ssl = strtobool(mgr.get_localized_module_option('ssl', 'True' )) File "/usr/lib64/python3.7/distutils/util.py", line 296, in strtobool val = val.lower() AttributeError:'bool' object has no attribute 'lower' ", version:"10.2.1" }
in mgr log-file.
Updated by Volker Theile about 5 years ago
Use the str_to_bool function from the tools.py to fix the issue.
Updated by Lenz Grimmer about 5 years ago
- Status changed from New to 12
- Target version set to v14.0.0
Confirmed - this should be fixed for the initial Nautilus release.
Updated by Tatjana Dehler about 5 years ago
- Assignee changed from Tatjana Dehler to Tina Kallio
- Pull request ID set to 26227
Updated by Tatjana Dehler about 5 years ago
- Status changed from 12 to In Progress
Updated by Lenz Grimmer about 5 years ago
- Status changed from In Progress to Fix Under Review
Updated by Tatjana Dehler about 5 years ago
- Status changed from Fix Under Review to Resolved
Updated by Ernesto Puerta about 3 years ago
- Project changed from mgr to Dashboard
- Category changed from 132 to General
Actions