{"action":"created","issue":{"url":"https://api.github.com/repos/cyraxx/pogobuf/issues/31","repository_url":"https://api.github.com/repos/cyraxx/pogobuf","labels_url":"https://api.github.com/repos/cyraxx/pogobuf/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/cyraxx/pogobuf/issues/31/comments","events_url":"https://api.github.com/repos/cyraxx/pogobuf/issues/31/events","html_url":"https://github.com/cyraxx/pogobuf/issues/31","id":168317666,"number":31,"title":"Request throttling","user":{"login":"cyraxx","id":337029,"avatar_url":"https://avatars.githubusercontent.com/u/337029?v=3","gravatar_id":"","url":"https://api.github.com/users/cyraxx","html_url":"https://github.com/cyraxx","followers_url":"https://api.github.com/users/cyraxx/followers","following_url":"https://api.github.com/users/cyraxx/following{/other_user}","gists_url":"https://api.github.com/users/cyraxx/gists{/gist_id}","starred_url":"https://api.github.com/users/cyraxx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyraxx/subscriptions","organizations_url":"https://api.github.com/users/cyraxx/orgs","repos_url":"https://api.github.com/users/cyraxx/repos","events_url":"https://api.github.com/users/cyraxx/events{/privacy}","received_events_url":"https://api.github.com/users/cyraxx/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cyraxx/pogobuf/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":19,"created_at":"2016-07-29T12:50:14Z","updated_at":"2016-07-30T20:57:10Z","closed_at":null,"body":"I just Implemented a very simple throttling of API calls to 1 per second: https://github.com/cyraxx/pogobuf/commit/15ca4ff45d5d3c9132b5d1d3bc703aeb3d14f696\r\n\r\nThis gets rid of the code 52 errors for now but I think you can actually do a little more than 1 per second.\r\n\r\nOne idea would be to don't do any preemptive throttling and instead retry requests (for a maximum of, say, 5 times) with a little delay whenever a status 52 response is received. That would be a little more robust as it would also handle the occasional 52 you get when the servers are overloaded."},"comment":{"url":"https://api.github.com/repos/cyraxx/pogobuf/issues/comments/236389566","html_url":"https://github.com/cyraxx/pogobuf/issues/31#issuecomment-236389566","issue_url":"https://api.github.com/repos/cyraxx/pogobuf/issues/31","id":236389566,"user":{"login":"renedx","id":310687,"avatar_url":"https://avatars.githubusercontent.com/u/310687?v=3","gravatar_id":"","url":"https://api.github.com/users/renedx","html_url":"https://github.com/renedx","followers_url":"https://api.github.com/users/renedx/followers","following_url":"https://api.github.com/users/renedx/following{/other_user}","gists_url":"https://api.github.com/users/renedx/gists{/gist_id}","starred_url":"https://api.github.com/users/renedx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renedx/subscriptions","organizations_url":"https://api.github.com/users/renedx/orgs","repos_url":"https://api.github.com/users/renedx/repos","events_url":"https://api.github.com/users/renedx/events{/privacy}","received_events_url":"https://api.github.com/users/renedx/received_events","type":"User","site_admin":false},"created_at":"2016-07-30T20:57:10Z","updated_at":"2016-07-30T20:57:10Z","body":"Yup, request throttling is OK. 👍  Changed everything into batch anyway, so I'm personally not even hitting limits without it anymore anyway :)"}}
{"actor":{"display_login":"renedx"}}