{"action":"created","issue":{"url":"https://api.github.com/repos/kontron/python-ipmi/issues/13","repository_url":"https://api.github.com/repos/kontron/python-ipmi","labels_url":"https://api.github.com/repos/kontron/python-ipmi/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/kontron/python-ipmi/issues/13/comments","events_url":"https://api.github.com/repos/kontron/python-ipmi/issues/13/events","html_url":"https://github.com/kontron/python-ipmi/issues/13","id":134218695,"number":13,"title":"GetChassisStatusRsp did not handle optional byte in response data","user":{"login":"hustbeta","id":1335981,"avatar_url":"https://avatars.githubusercontent.com/u/1335981?v=3","gravatar_id":"","url":"https://api.github.com/users/hustbeta","html_url":"https://github.com/hustbeta","followers_url":"https://api.github.com/users/hustbeta/followers","following_url":"https://api.github.com/users/hustbeta/following{/other_user}","gists_url":"https://api.github.com/users/hustbeta/gists{/gist_id}","starred_url":"https://api.github.com/users/hustbeta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hustbeta/subscriptions","organizations_url":"https://api.github.com/users/hustbeta/orgs","repos_url":"https://api.github.com/users/hustbeta/repos","events_url":"https://api.github.com/users/hustbeta/events{/privacy}","received_events_url":"https://api.github.com/users/hustbeta/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-17T08:51:04Z","updated_at":"2016-02-17T10:47:20Z","closed_at":null,"body":"From the ipmi 2.0 spec, 28.2 Get Chassis Status Command, there is an optional extra byte in response data. So the response could be 5 bytes. But **GetChassisStatusRsp** handles 4 bytes only, which will raise DecodingError('Data has extra bytes'). I have came across this problem on some HP servers, they returned the optional byte as 0x00.\r\n\r\nI am not familiar with the source code, maybe appending a **RemainingBytes** to **GetChassisStatusRsp** will solve the issue?"},"comment":{"url":"https://api.github.com/repos/kontron/python-ipmi/issues/comments/185149785","html_url":"https://github.com/kontron/python-ipmi/issues/13#issuecomment-185149785","issue_url":"https://api.github.com/repos/kontron/python-ipmi/issues/13","id":185149785,"user":{"login":"hthiery","id":6574930,"avatar_url":"https://avatars.githubusercontent.com/u/6574930?v=3","gravatar_id":"","url":"https://api.github.com/users/hthiery","html_url":"https://github.com/hthiery","followers_url":"https://api.github.com/users/hthiery/followers","following_url":"https://api.github.com/users/hthiery/following{/other_user}","gists_url":"https://api.github.com/users/hthiery/gists{/gist_id}","starred_url":"https://api.github.com/users/hthiery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hthiery/subscriptions","organizations_url":"https://api.github.com/users/hthiery/orgs","repos_url":"https://api.github.com/users/hthiery/repos","events_url":"https://api.github.com/users/hthiery/events{/privacy}","received_events_url":"https://api.github.com/users/hthiery/received_events","type":"User","site_admin":false},"created_at":"2016-02-17T10:47:19Z","updated_at":"2016-02-17T10:47:19Z","body":"It is fixed by adding \"optional\" field."}}