{"action":"created","issue":{"url":"https://api.github.com/repos/oapi/shieldsup/issues/22","labels_url":"https://api.github.com/repos/oapi/shieldsup/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/oapi/shieldsup/issues/22/comments","events_url":"https://api.github.com/repos/oapi/shieldsup/issues/22/events","html_url":"https://github.com/oapi/shieldsup/issues/22","id":85143395,"number":22,"title":"Rate limit handling on the server.","user":{"login":"bswopes","id":1271437,"avatar_url":"https://avatars.githubusercontent.com/u/1271437?v=3","gravatar_id":"","url":"https://api.github.com/users/bswopes","html_url":"https://github.com/bswopes","followers_url":"https://api.github.com/users/bswopes/followers","following_url":"https://api.github.com/users/bswopes/following{/other_user}","gists_url":"https://api.github.com/users/bswopes/gists{/gist_id}","starred_url":"https://api.github.com/users/bswopes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bswopes/subscriptions","organizations_url":"https://api.github.com/users/bswopes/orgs","repos_url":"https://api.github.com/users/bswopes/repos","events_url":"https://api.github.com/users/bswopes/events{/privacy}","received_events_url":"https://api.github.com/users/bswopes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-04T15:18:27Z","updated_at":"2015-06-04T15:18:57Z","closed_at":null,"body":"We should monitor the rate limit / remaining requests and back off as we approach the limit (X-Rate-Limit-Remaining, X-Rate-Limit-Limit); currently we appear to only know after we have exceeded the limit. \r\n\r\nAlso, a relevant error message could be displayed to the user.\r\n\r\nhttps://dev.twitter.com/rest/public/rate-limiting"},"comment":{"url":"https://api.github.com/repos/oapi/shieldsup/issues/comments/108932652","html_url":"https://github.com/oapi/shieldsup/issues/22#issuecomment-108932652","issue_url":"https://api.github.com/repos/oapi/shieldsup/issues/22","id":108932652,"user":{"login":"bswopes","id":1271437,"avatar_url":"https://avatars.githubusercontent.com/u/1271437?v=3","gravatar_id":"","url":"https://api.github.com/users/bswopes","html_url":"https://github.com/bswopes","followers_url":"https://api.github.com/users/bswopes/followers","following_url":"https://api.github.com/users/bswopes/following{/other_user}","gists_url":"https://api.github.com/users/bswopes/gists{/gist_id}","starred_url":"https://api.github.com/users/bswopes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bswopes/subscriptions","organizations_url":"https://api.github.com/users/bswopes/orgs","repos_url":"https://api.github.com/users/bswopes/repos","events_url":"https://api.github.com/users/bswopes/events{/privacy}","received_events_url":"https://api.github.com/users/bswopes/received_events","type":"User","site_admin":false},"created_at":"2015-06-04T15:18:57Z","updated_at":"2015-06-04T15:18:57Z","body":"Could just be an issue with my setup, but the server currently appears to exit when rate limit exceeded. Does this happen to anyone else?\r\n\r\n```\r\nException `Twitter::Error::TooManyRequests' at /var/lib/gems/1.9.1/gems/twitter-5.14.0/lib/twitter/rest/response/raise_error.rb:15 - Rate limit exceeded\r\nW, [2015-06-04T08:02:30.388013 #20243]  WARN -- : ERR_TWITTER: Rate limited (472)\r\nException `Errno::EPIPE' at ./server.rb:30 - Broken pipe\r\nException `Errno::EPIPE' at ./server.rb:513 - Broken pipe\r\n./server.rb:30:in `write': Broken pipe (Errno::EPIPE)\r\n\tfrom ./server.rb:30:in `puts'\r\n\tfrom ./server.rb:30:in `rescue in get_userdata'\r\n\tfrom ./server.rb:22:in `get_userdata'\r\n\tfrom ./server.rb:472:in `handle_client'\r\n\tfrom ./server.rb:520:in `block in main'\r\n```"}}