{"action":"created","issue":{"url":"https://api.github.com/repos/CIRCL/PyMISP/issues/53","repository_url":"https://api.github.com/repos/CIRCL/PyMISP","labels_url":"https://api.github.com/repos/CIRCL/PyMISP/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/CIRCL/PyMISP/issues/53/comments","events_url":"https://api.github.com/repos/CIRCL/PyMISP/issues/53/events","html_url":"https://github.com/CIRCL/PyMISP/issues/53","id":169401394,"number":53,"title":"PyMISP gives obscure error when API key is invalid","user":{"login":"RichieB2B","id":1461970,"avatar_url":"https://avatars.githubusercontent.com/u/1461970?v=3","gravatar_id":"","url":"https://api.github.com/users/RichieB2B","html_url":"https://github.com/RichieB2B","followers_url":"https://api.github.com/users/RichieB2B/followers","following_url":"https://api.github.com/users/RichieB2B/following{/other_user}","gists_url":"https://api.github.com/users/RichieB2B/gists{/gist_id}","starred_url":"https://api.github.com/users/RichieB2B/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RichieB2B/subscriptions","organizations_url":"https://api.github.com/users/RichieB2B/orgs","repos_url":"https://api.github.com/users/RichieB2B/repos","events_url":"https://api.github.com/users/RichieB2B/events{/privacy}","received_events_url":"https://api.github.com/users/RichieB2B/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-04T15:21:57Z","updated_at":"2016-08-04T15:44:00Z","closed_at":null,"body":"I shouldn't have to use tcpdump to understand what went wrong.\r\n```\r\n$ ./et2misp.py \r\nTraceback (most recent call last):\r\n  File \"./et2misp.py\", line 75, in <module>\r\n    init()\r\n  File \"./et2misp.py\", line 14, in init\r\n    mymisp = PyMISP(url, key)\r\n  File \"/usr/local/lib/python2.7/dist-packages/pymisp/api.py\", line 118, in __init__\r\n    self.categories = self.describe_types['result']['categories']\r\nKeyError: 'result'\r\n```"},"comment":{"url":"https://api.github.com/repos/CIRCL/PyMISP/issues/comments/237594086","html_url":"https://github.com/CIRCL/PyMISP/issues/53#issuecomment-237594086","issue_url":"https://api.github.com/repos/CIRCL/PyMISP/issues/53","id":237594086,"user":{"login":"RichieB2B","id":1461970,"avatar_url":"https://avatars.githubusercontent.com/u/1461970?v=3","gravatar_id":"","url":"https://api.github.com/users/RichieB2B","html_url":"https://github.com/RichieB2B","followers_url":"https://api.github.com/users/RichieB2B/followers","following_url":"https://api.github.com/users/RichieB2B/following{/other_user}","gists_url":"https://api.github.com/users/RichieB2B/gists{/gist_id}","starred_url":"https://api.github.com/users/RichieB2B/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RichieB2B/subscriptions","organizations_url":"https://api.github.com/users/RichieB2B/orgs","repos_url":"https://api.github.com/users/RichieB2B/repos","events_url":"https://api.github.com/users/RichieB2B/events{/privacy}","received_events_url":"https://api.github.com/users/RichieB2B/received_events","type":"User","site_admin":false},"created_at":"2016-08-04T15:44:00Z","updated_at":"2016-08-04T15:44:00Z","body":"I think this is because _check_response() doesn't raise an exception for response code 403 (it just sets an error string) while __init__ calls get_version() and expects an exception."}}
{"actor":{"display_login":"RichieB2B"}}