{"action":"created","issue":{"url":"https://api.github.com/repos/slackhq/hubot-slack/issues/151","labels_url":"https://api.github.com/repos/slackhq/hubot-slack/issues/151/labels{/name}","comments_url":"https://api.github.com/repos/slackhq/hubot-slack/issues/151/comments","events_url":"https://api.github.com/repos/slackhq/hubot-slack/issues/151/events","html_url":"https://github.com/slackhq/hubot-slack/issues/151","id":56607440,"number":151,"title":"Handling of Bulk Messages and Rate Limits","user":{"login":"Linuturk","id":599062,"avatar_url":"https://avatars.githubusercontent.com/u/599062?v=3","gravatar_id":"","url":"https://api.github.com/users/Linuturk","html_url":"https://github.com/Linuturk","followers_url":"https://api.github.com/users/Linuturk/followers","following_url":"https://api.github.com/users/Linuturk/following{/other_user}","gists_url":"https://api.github.com/users/Linuturk/gists{/gist_id}","starred_url":"https://api.github.com/users/Linuturk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Linuturk/subscriptions","organizations_url":"https://api.github.com/users/Linuturk/orgs","repos_url":"https://api.github.com/users/Linuturk/repos","events_url":"https://api.github.com/users/Linuturk/events{/privacy}","received_events_url":"https://api.github.com/users/Linuturk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-05T00:00:35Z","updated_at":"2015-02-05T00:29:31Z","closed_at":null,"body":"We recently implemented a workaround that solves a possible rate limiting issue for Slack by collecting a bunch of rapid fire small messages and pushing them as one large message.\r\n\r\nhttps://github.com/hubot-scripts/hubot-circleci/pull/12 \r\n\r\nIt is unclear if we actually hit a rate limit, or if something else is wonky, but we wanted to get your input on this.\r\n\r\n * Do you perform error handling when a rate limit error message is returned via the API?\r\n * How would we catch that exception in the example I linked above?\r\n * Do you have any buffer or queue implemented that would gather up these many small messages, and resend them as a bulk message if the rate limit is hit?"},"comment":{"url":"https://api.github.com/repos/slackhq/hubot-slack/issues/comments/72971047","html_url":"https://github.com/slackhq/hubot-slack/issues/151#issuecomment-72971047","issue_url":"https://api.github.com/repos/slackhq/hubot-slack/issues/151","id":72971047,"user":{"login":"evansolomon","id":407310,"avatar_url":"https://avatars.githubusercontent.com/u/407310?v=3","gravatar_id":"","url":"https://api.github.com/users/evansolomon","html_url":"https://github.com/evansolomon","followers_url":"https://api.github.com/users/evansolomon/followers","following_url":"https://api.github.com/users/evansolomon/following{/other_user}","gists_url":"https://api.github.com/users/evansolomon/gists{/gist_id}","starred_url":"https://api.github.com/users/evansolomon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evansolomon/subscriptions","organizations_url":"https://api.github.com/users/evansolomon/orgs","repos_url":"https://api.github.com/users/evansolomon/repos","events_url":"https://api.github.com/users/evansolomon/events{/privacy}","received_events_url":"https://api.github.com/users/evansolomon/received_events","type":"User","site_admin":false},"created_at":"2015-02-05T00:29:31Z","updated_at":"2015-02-05T00:29:31Z","body":"How many messages are you sending when this error happens (order of magnitude answer here would be fine)?  Do you happen to have any kind of error message/stack trace/etc that might give more info on exactly what happened?"}}