DMTF/python-redfish-library

Initialize redfish object failed after logging config changes

Closed this issue · 0 comments

Python 3.6.3 |Anaconda, Inc.| (default, Oct 15 2017, 07:29:16) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.

import logging
import redfish
logging.basicConfig(level=logging.DEBUG)
redfish.redfish_client("https://10.239.91.40")
DEBUG:redfish.rest.v1:HTTP REQUEST: GET
PATH: /redfish/v1/
BODY: None
INFO:redfish.rest.v1:Attempt 1 of /redfish/v1/
INFO:redfish.rest.v1:Response Time to /redfish/v1/: 0.10654076165774838 seconds.
Traceback (most recent call last):
File "", line 1, in
File "C:\Anaconda3\lib\site-packages\redfish-2.0.0-py3.6.egg\redfish\rest\v1.py", line 953, in redfish_client
File "C:\Anaconda3\lib\site-packages\redfish-2.0.0-py3.6.egg\redfish\rest\v1.py", line 891, in init
File "C:\Anaconda3\lib\site-packages\redfish-2.0.0-py3.6.egg\redfish\rest\v1.py", line 400, in init
File "C:\Anaconda3\lib\site-packages\redfish-2.0.0-py3.6.egg\redfish\rest\v1.py", line 515, in get_root_object
File "C:\Anaconda3\lib\site-packages\redfish-2.0.0-py3.6.egg\redfish\rest\v1.py", line 513, in get_root_object
File "C:\Anaconda3\lib\site-packages\redfish-2.0.0-py3.6.egg\redfish\rest\v1.py", line 547, in get
File "C:\Anaconda3\lib\site-packages\redfish-2.0.0-py3.6.egg\redfish\rest\v1.py", line 918, in _rest_request
File "C:\Anaconda3\lib\site-packages\redfish-2.0.0-py3.6.egg\redfish\rest\v1.py", line 785, in _rest_request
AttributeError: 'HTTPMessage' object has no attribute 'headers'