{"action":"closed","issue":{"url":"https://api.github.com/repos/AlienVault-Labs/OTX-Python-SDK/issues/6","labels_url":"https://api.github.com/repos/AlienVault-Labs/OTX-Python-SDK/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/AlienVault-Labs/OTX-Python-SDK/issues/6/comments","events_url":"https://api.github.com/repos/AlienVault-Labs/OTX-Python-SDK/issues/6/events","html_url":"https://github.com/AlienVault-Labs/OTX-Python-SDK/issues/6","id":109321076,"number":6,"title":"Unicode decode error in OTXv2.py when calling \"getall()\"","user":{"login":"Neo23x0","id":2851492,"avatar_url":"https://avatars.githubusercontent.com/u/2851492?v=3","gravatar_id":"","url":"https://api.github.com/users/Neo23x0","html_url":"https://github.com/Neo23x0","followers_url":"https://api.github.com/users/Neo23x0/followers","following_url":"https://api.github.com/users/Neo23x0/following{/other_user}","gists_url":"https://api.github.com/users/Neo23x0/gists{/gist_id}","starred_url":"https://api.github.com/users/Neo23x0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Neo23x0/subscriptions","organizations_url":"https://api.github.com/users/Neo23x0/orgs","repos_url":"https://api.github.com/users/Neo23x0/repos","events_url":"https://api.github.com/users/Neo23x0/events{/privacy}","received_events_url":"https://api.github.com/users/Neo23x0/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-01T15:13:34Z","updated_at":"2015-10-01T17:12:59Z","closed_at":"2015-10-01T17:12:59Z","body":"\r\nWith the new version of OTX-Python-SDK I get an error when calling getall(), which has not been there with the older version of the SDK. \r\n\r\nIt can be reproduced with my get-otx-iocs.py script and the right subscriptions. \r\nhttps://github.com/Neo23x0/Loki/blob/master/threatintel/get-otx-iocs.py\r\n\r\nAs it happens in line 53 of OTXv2.py when decoding the whole response, it is diffucult to determin which pulse has the UNICODE characters that cannot be decoded. \r\n\r\n```\r\nprometheus:threatintel neo$ python get-otx-iocs_flo.py\r\nStarting OTX feed download ...\r\nTraceback (most recent call last):\r\n  File \"get-otx-iocs_flo.py\", line 142, in <module>\r\n    otx_receiver.get_iocs_last()\r\n  File \"get-otx-iocs_flo.py\", line 50, in get_iocs_last\r\n    self.events = self.otx.getall()\r\n  File \"/Library/Python/2.7/site-packages/OTXv2.py\", line 62, in getall\r\n    json_data = self.get(next)\r\n  File \"/Library/Python/2.7/site-packages/OTXv2.py\", line 53, in get\r\n    data = response.read().decode()\r\nUnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 128233: ordinal not in range(128)\r\n```\r\n"}}