We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1328f92 commit 1a40282Copy full SHA for 1a40282
1 file changed
src/redfish/rest/v1.py
@@ -255,6 +255,10 @@ def dict(self):
255
return {}
256
return json.loads(self.text)
257
except:
258
+ if self.status == 500:
259
+ # Make an allowance for 500 status codes
260
+ # Depending on the reason for the error, it's possible the web server may not be able to support Redfish handling
261
+ return {}
262
str = "Service responded with invalid JSON at URI {}\n{}".format(
263
self._rest_request.path, self.text)
264
LOGGER.error(str)
0 commit comments