We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a7e7f62 + 905594b commit 14f35cdCopy full SHA for 14f35cd
1 file changed
src/redfish/rest/v1.py
@@ -596,6 +596,13 @@ def get_root_object(self):
596
except Exception as excp:
597
raise excp
598
599
+ if resp.status == 401 and self.__authorization_key is None and self.__session_key is None:
600
+ # Workaround where the service incorrectly rejects access to service
601
+ # root when no credentials are provided
602
+ warnings.warn("Service incorrectly responded with HTTP 401 Unauthorized for the service root. Contact your vendor.")
603
+ self.root = {}
604
+ self.root_resp = resp
605
+ return
606
if resp.status != 200:
607
raise ServerDownOrUnreachableError("Server not reachable, " \
608
"return code: %d" % resp.status,response=resp)
0 commit comments