{"action":"created","issue":{"url":"https://api.github.com/repos/librato/python-librato/issues/105","labels_url":"https://api.github.com/repos/librato/python-librato/issues/105/labels{/name}","comments_url":"https://api.github.com/repos/librato/python-librato/issues/105/comments","events_url":"https://api.github.com/repos/librato/python-librato/issues/105/events","html_url":"https://github.com/librato/python-librato/issues/105","id":114634727,"number":105,"title":"IOError raised in flush should display status code","user":{"login":"julienbachmann","id":154371,"avatar_url":"https://avatars.githubusercontent.com/u/154371?v=3","gravatar_id":"","url":"https://api.github.com/users/julienbachmann","html_url":"https://github.com/julienbachmann","followers_url":"https://api.github.com/users/julienbachmann/followers","following_url":"https://api.github.com/users/julienbachmann/following{/other_user}","gists_url":"https://api.github.com/users/julienbachmann/gists{/gist_id}","starred_url":"https://api.github.com/users/julienbachmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julienbachmann/subscriptions","organizations_url":"https://api.github.com/users/julienbachmann/orgs","repos_url":"https://api.github.com/users/julienbachmann/repos","events_url":"https://api.github.com/users/julienbachmann/events{/privacy}","received_events_url":"https://api.github.com/users/julienbachmann/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-02T16:46:44Z","updated_at":"2015-11-02T21:01:57Z","closed_at":"2015-11-02T21:01:57Z","body":"Hello,\r\n\r\nI have sometime IOError that is raised when I flush. But the problem is that in the IOError object I just have a text that don't tell me what was the problem.\r\n\r\nHere is the stacktrace I have:\r\n\r\n    Traceback (most recent call last):\r\n      File \"/home/eee/anaconda/envs/eee/bin/zibrato-librato\", line 9, in <module>\r\n        load_entry_point('Zibrato==0.2.0', 'console_scripts', 'zibrato-librato')()\r\n      File \"/home/eee/anaconda/envs/eee/lib/python2.7/site-packages/zibrato/librato.py\", line 106, in main\r\n        l.flush()\r\n      File \"/home/eee/anaconda/envs/eee/lib/python2.7/site-packages/zibrato/librato.py\", line 70, in flush\r\n        raise IOError(r.text + ' ' + data)\r\n    IOError:  {\"gauges\": [{\"name\": \"engine-time-engine_2\", \"value\": 203.0, \"source\":     \"dev:eee:1.internal\", \"measure_time\": \"1446481740\"}, {\"name\": \"engine-time-    default\", \"value\": 122.0, \"source\": \"dev:eee:1.internal\", \"measure_time\":     \"1446481800\"}]}\r\n\r\nThe code in python-librato that raise this error is as follow:\r\n\r\n      if r.status_code > 200 :\r\n        raise IOError(r.text + ' ' + data)\r\n      else:\r\n        return r.status_code\r\n\r\n\r\nAs you can see, this does not tell me what was wrong. If I would have the status code it will help me to understand.\r\n"},"comment":{"url":"https://api.github.com/repos/librato/python-librato/issues/comments/153155380","html_url":"https://github.com/librato/python-librato/issues/105#issuecomment-153155380","issue_url":"https://api.github.com/repos/librato/python-librato/issues/105","id":153155380,"user":{"login":"julienbachmann","id":154371,"avatar_url":"https://avatars.githubusercontent.com/u/154371?v=3","gravatar_id":"","url":"https://api.github.com/users/julienbachmann","html_url":"https://github.com/julienbachmann","followers_url":"https://api.github.com/users/julienbachmann/followers","following_url":"https://api.github.com/users/julienbachmann/following{/other_user}","gists_url":"https://api.github.com/users/julienbachmann/gists{/gist_id}","starred_url":"https://api.github.com/users/julienbachmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julienbachmann/subscriptions","organizations_url":"https://api.github.com/users/julienbachmann/orgs","repos_url":"https://api.github.com/users/julienbachmann/repos","events_url":"https://api.github.com/users/julienbachmann/events{/privacy}","received_events_url":"https://api.github.com/users/julienbachmann/received_events","type":"User","site_admin":false},"created_at":"2015-11-02T21:01:57Z","updated_at":"2015-11-02T21:01:57Z","body":"Sorry, I was thinking librato.py was in your lib. I didn't notice that it was in zibrato project.\r\n\r\nSorry for that."}}