{"action":"created","issue":{"url":"https://api.github.com/repos/librato/python-librato/issues/118","repository_url":"https://api.github.com/repos/librato/python-librato","labels_url":"https://api.github.com/repos/librato/python-librato/issues/118/labels{/name}","comments_url":"https://api.github.com/repos/librato/python-librato/issues/118/comments","events_url":"https://api.github.com/repos/librato/python-librato/issues/118/events","html_url":"https://github.com/librato/python-librato/issues/118","id":157856229,"number":118,"title":"403 error","user":{"login":"tcroiset","id":2507403,"avatar_url":"https://avatars.githubusercontent.com/u/2507403?v=3","gravatar_id":"","url":"https://api.github.com/users/tcroiset","html_url":"https://github.com/tcroiset","followers_url":"https://api.github.com/users/tcroiset/followers","following_url":"https://api.github.com/users/tcroiset/following{/other_user}","gists_url":"https://api.github.com/users/tcroiset/gists{/gist_id}","starred_url":"https://api.github.com/users/tcroiset/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tcroiset/subscriptions","organizations_url":"https://api.github.com/users/tcroiset/orgs","repos_url":"https://api.github.com/users/tcroiset/repos","events_url":"https://api.github.com/users/tcroiset/events{/privacy}","received_events_url":"https://api.github.com/users/tcroiset/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-01T08:59:57Z","updated_at":"2016-06-02T13:46:24Z","closed_at":null,"body":"Hi,\r\nSome of my calls to submit metrics fail\r\nIt concerns calls with many (~200) metrics sent.\r\nIt looks like the api returns 403 error (why?), and the parsing of the error fails.\r\n\r\nbests,\r\n\r\n\r\n> Traceback (most recent call last):\r\n> File \"/home/vmagent/app/api/views/other.py\", line 248, in post\r\nq.submit()\r\n> File \"/usr/local/lib/python2.7/dist-packages/librato/queue.py\", line 93, in submit\r\nself.connection._mexe(\"metrics\", method=\"POST\", query_props=c)\r\n> File \"/usr/local/lib/python2.7/dist-packages/librato/__init__.py\", line 180, in _mexe\r\nresp_data, success, backoff = self._process_response(resp, backoff)\r\n> File \"/usr/local/lib/python2.7/dist-packages/librato/__init__.py\", line 160, in _process_response\r\nraise exceptions.get(resp.status, resp_data)\r\n> File \"/usr/local/lib/python2.7/dist-packages/librato/exceptions.py\", line 137, in get\r\nreturn CODES[code](resp_data)\r\n> File \"/usr/local/lib/python2.7/dist-packages/librato/exceptions.py\", line 119, in __init__\r\nClientError.__init__(self, 403, msg)\r\n> File \"/usr/local/lib/python2.7/dist-packages/librato/exceptions.py\", line 32, in __init__\r\nException.__init__(self, self.error_message())\r\nFile \"/usr/local/lib/python2.7/dist-packages/librato/exceptions.py\", line 35, in error_message\r\nreturn \"[%s] %s\" % (self.code, self._parse_error_message())\r\nFile \"/usr/local/lib/python2.7/dist-packages/librato/exceptions.py\", line 71, in _parse_error_message\r\npayload = self.error_payload['errors']\r\nKeyError: 'errors'"},"comment":{"url":"https://api.github.com/repos/librato/python-librato/issues/comments/223296137","html_url":"https://github.com/librato/python-librato/issues/118#issuecomment-223296137","issue_url":"https://api.github.com/repos/librato/python-librato/issues/118","id":223296137,"user":{"login":"drio","id":17954,"avatar_url":"https://avatars.githubusercontent.com/u/17954?v=3","gravatar_id":"","url":"https://api.github.com/users/drio","html_url":"https://github.com/drio","followers_url":"https://api.github.com/users/drio/followers","following_url":"https://api.github.com/users/drio/following{/other_user}","gists_url":"https://api.github.com/users/drio/gists{/gist_id}","starred_url":"https://api.github.com/users/drio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drio/subscriptions","organizations_url":"https://api.github.com/users/drio/orgs","repos_url":"https://api.github.com/users/drio/repos","events_url":"https://api.github.com/users/drio/events{/privacy}","received_events_url":"https://api.github.com/users/drio/received_events","type":"User","site_admin":false},"created_at":"2016-06-02T13:46:24Z","updated_at":"2016-06-02T13:46:24Z","body":"Hi @tcroiset, \r\n\r\nIt seems we are receiving an unexpected error payload. Could you please try your code using [this](https://github.com/librato/python-librato/tree/chore/report_error_payload) branch? It should report the error payload so we can identify what the problem is with the request. \r\n\r\nAlternatively, I can try that on my end if you send me the code you are using.\r\n\r\n"}}
{"actor":{"display_login":"drio"}}