{"action":"closed","issue":{"url":"https://api.github.com/repos/tanium/pytan/issues/9","labels_url":"https://api.github.com/repos/tanium/pytan/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/tanium/pytan/issues/9/comments","events_url":"https://api.github.com/repos/tanium/pytan/issues/9/events","html_url":"https://github.com/tanium/pytan/issues/9","id":103603276,"number":9,"title":"get_server_info errors out on pytan 2.0.3 against tanium 6.2","user":{"login":"lespea","id":99605,"avatar_url":"https://avatars.githubusercontent.com/u/99605?v=3","gravatar_id":"","url":"https://api.github.com/users/lespea","html_url":"https://github.com/lespea","followers_url":"https://api.github.com/users/lespea/followers","following_url":"https://api.github.com/users/lespea/following{/other_user}","gists_url":"https://api.github.com/users/lespea/gists{/gist_id}","starred_url":"https://api.github.com/users/lespea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lespea/subscriptions","organizations_url":"https://api.github.com/users/lespea/orgs","repos_url":"https://api.github.com/users/lespea/repos","events_url":"https://api.github.com/users/lespea/events{/privacy}","received_events_url":"https://api.github.com/users/lespea/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"lifehackjim","id":7453963,"avatar_url":"https://avatars.githubusercontent.com/u/7453963?v=3","gravatar_id":"","url":"https://api.github.com/users/lifehackjim","html_url":"https://github.com/lifehackjim","followers_url":"https://api.github.com/users/lifehackjim/followers","following_url":"https://api.github.com/users/lifehackjim/following{/other_user}","gists_url":"https://api.github.com/users/lifehackjim/gists{/gist_id}","starred_url":"https://api.github.com/users/lifehackjim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lifehackjim/subscriptions","organizations_url":"https://api.github.com/users/lifehackjim/orgs","repos_url":"https://api.github.com/users/lifehackjim/repos","events_url":"https://api.github.com/users/lifehackjim/events{/privacy}","received_events_url":"https://api.github.com/users/lifehackjim/received_events","type":"User","site_admin":false},"milestone":null,"comments":10,"created_at":"2015-08-27T21:54:28Z","updated_at":"2015-09-21T17:54:01Z","closed_at":"2015-09-21T17:54:01Z","body":"In pytan.sessions.py the function `get_server_info` it looks like `self.http_post` is returning a str instead of json:\r\n\r\n```\r\nd == digit; h == hex\r\n\r\ndddd-ddddd-hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh\r\n```\r\n\r\nThis of course is problematic as you can't call `get` on a unicode string. The library technically continues functioning after the exception is thrown though...\r\n\r\n```\r\nException in thread Thread-2:\r\nTraceback (most recent call last):\r\n  File \"/usr/local/Cellar/python/2.7.10/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py\", line 810, in __bootstrap_inner\r\n    self.run()\r\n  File \"/usr/local/Cellar/python/2.7.10/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py\", line 763, in run\r\n    self.__target(*self.__args, **self.__kwargs)\r\n  File \"../lib/pytan/handler.py\", line 1609, in _derive_server_version\r\n    self.server_version = self.session.get_server_version()\r\n  File \"../lib/pytan/sessions.py\", line 421, in get_server_version\r\n    self.server_info = self.get_server_info()\r\n  File \"../lib/pytan/sessions.py\", line 409, in get_server_info\r\n    body['diags_flat'] = self._flatten_server_info(body.get('Diagnostics', []))\r\nAttributeError: 'unicode' object has no attribute 'get'Exception in thread Thread-2:\r\nTraceback (most recent call last):\r\n  File \"/usr/local/Cellar/python/2.7.10/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py\", line 810, in __bootstrap_inner\r\n    self.run()\r\n  File \"/usr/local/Cellar/python/2.7.10/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py\", line 763, in run\r\n    self.__target(*self.__args, **self.__kwargs)\r\n  File \"../lib/pytan/handler.py\", line 1609, in _derive_server_version\r\n    self.server_version = self.session.get_server_version()\r\n  File \"../lib/pytan/sessions.py\", line 421, in get_server_version\r\n    self.server_info = self.get_server_info()\r\n  File \"../lib/pytan/sessions.py\", line 409, in get_server_info\r\n    body['diags_flat'] = self._flatten_server_info(body.get('Diagnostics', []))\r\nAttributeError: 'unicode' object has no attribute 'get'\r\n```\r\n\r\nI don't really have access to the Tanium instance but I can try to work with the platform owner if this is unexpected. I did a simple get on /info.json and it looks like the second number increases every time and the last bit is random (I tried hex decoding it but it was gibberish)."}}