-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KeyError: 'transfer-encoding' #232
Comments
You left your password in there. I edited it out, but you may want to change that password 😞 02.01.03 is not a known version number, are you sure this is an ilo? If you change line 509 to |
According to HPSC [ although this iLo is not accessible from anywhere outside of a firewalled LAN it was silly of me to include the password and I have changed it ]. |
$ python hpilo_cli. x.x.x.x -d --save-response=r.txt --login="Administrator" --password=PASSWORD get_fw_version |
here's the saved response file |
I would be disappointed but not entirely surprised to discover this server iLo is too prehistoric for this software |
Heh, python-hpilo still supports the original ilo 1. But yeah, I only ever use(d) it on proliants, not integrity servers. It looks like the protocol autodetection thinks you should be using http to talk to the ilo, but actually doing this fails and you get some html document back. Can you try with |
$ python hpilo_cli. 10.59.255.37 -d --protocol raw --save-response=r.txt --login="Administrator" --password="PASSWORD" get_ |
and here's the saved response |
I guess the key part of that response is at the end "The requested method is not recognized by this server." |
I'm seeing this error message when trying to talk to a iLo3 on a rx2800 i2
$ python hpilo_cli. 10.59.255.37 -d --login="Administrator" --password="PASSWORD" get_embedded_health
Connecting to 10.59.255.37 port 443
Sending XML request, 132 bytes
Received 3446 bytes
Traceback (most recent call last):
File "hpilo_cli.", line 334, in
main()
File "hpilo_cli.", line 214, in main
results = [getattr(ilo, method)(**params)]
File "hpilo.py", line 1041, in get_embedded_health
process=process)
File "hpilo.py", line 734, in _info_tag
header, message = self._request(root)
File "hpilo.py", line 238, in _request
self._detect_protocol()
File "hpilo.py", line 278, in _detect_protocol
header, data = self._communicate(b'', ILO_HTTP, save=False)
File "hpilo.py", line 509, in _communicate
if header['transfer-encoding'] == 'chunked':
KeyError: 'transfer-encoding'
$ python hpilo_cli. -v
4.3
$ python --version
Python 2.7.18
[ on a HPE rx2800 i2 running OpenVMS V8.4 ]
iLO FW : 02.01.03 which is the most recent version for this server
The text was updated successfully, but these errors were encountered: