{"action":"created","issue":{"url":"https://api.github.com/repos/ludovic-gonthier/snowshoe/issues/33","labels_url":"https://api.github.com/repos/ludovic-gonthier/snowshoe/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/ludovic-gonthier/snowshoe/issues/33/comments","events_url":"https://api.github.com/repos/ludovic-gonthier/snowshoe/issues/33/events","html_url":"https://github.com/ludovic-gonthier/snowshoe/issues/33","id":98385167,"number":33,"title":"Loss of connection","user":{"login":"ludovic-gonthier","id":2995136,"avatar_url":"https://avatars.githubusercontent.com/u/2995136?v=3","gravatar_id":"","url":"https://api.github.com/users/ludovic-gonthier","html_url":"https://github.com/ludovic-gonthier","followers_url":"https://api.github.com/users/ludovic-gonthier/followers","following_url":"https://api.github.com/users/ludovic-gonthier/following{/other_user}","gists_url":"https://api.github.com/users/ludovic-gonthier/gists{/gist_id}","starred_url":"https://api.github.com/users/ludovic-gonthier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ludovic-gonthier/subscriptions","organizations_url":"https://api.github.com/users/ludovic-gonthier/orgs","repos_url":"https://api.github.com/users/ludovic-gonthier/repos","events_url":"https://api.github.com/users/ludovic-gonthier/events{/privacy}","received_events_url":"https://api.github.com/users/ludovic-gonthier/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ludovic-gonthier/snowshoe/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"ludovic-gonthier","id":2995136,"avatar_url":"https://avatars.githubusercontent.com/u/2995136?v=3","gravatar_id":"","url":"https://api.github.com/users/ludovic-gonthier","html_url":"https://github.com/ludovic-gonthier","followers_url":"https://api.github.com/users/ludovic-gonthier/followers","following_url":"https://api.github.com/users/ludovic-gonthier/following{/other_user}","gists_url":"https://api.github.com/users/ludovic-gonthier/gists{/gist_id}","starred_url":"https://api.github.com/users/ludovic-gonthier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ludovic-gonthier/subscriptions","organizations_url":"https://api.github.com/users/ludovic-gonthier/orgs","repos_url":"https://api.github.com/users/ludovic-gonthier/repos","events_url":"https://api.github.com/users/ludovic-gonthier/events{/privacy}","received_events_url":"https://api.github.com/users/ludovic-gonthier/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-07-31T12:54:17Z","updated_at":"2015-07-31T13:08:20Z","closed_at":null,"body":"## Description\r\n\r\nSnowshoe seems to loss the connection and then calls the github API anonymously causing Github to return 403 thus disabling the user ability to connect to the application.\r\n\r\nThe URL's cache seems to blame. The closed PR URL's aren't purged, growing the DB size out of control.\r\n\r\n## Actions\r\n\r\nPurge DB from unnecessary data.\r\nDisplay a correct error message to the user if the API rate is exceeded.\r\nDisplay a correct error message if the user do not succeed to connect.\r\n\r\n## Trace\r\n\r\n```\r\nGET /auth/github/callback?code=37dacc02936c8b00ca9b - - ms - -\r\nfailed to fetch user profile (status: 403 data: {\"message\":\"API rate limit exceeded for 194.3.81.110. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)\",\"documentation_url\":\"https://developer.github.com/v3/#rate-limiting\"})\r\n    at /opt/web/snowshoe/node_modules/passport-github/lib/passport-github/strategy.js:90:28\r\n    at passBackControl (/opt/web/snowshoe/node_modules/passport-github/node_modules/passport-oauth/node_modules/oauth/lib/oauth2.js:123:9)\r\n    at IncomingMessage.<anonymous> (/opt/web/snowshoe/node_modules/passport-github/node_modules/passport-oauth/node_modules/oauth/lib/oauth2.js:142:7)\r\n    at IncomingMessage.emit (events.js:117:20)\r\n    at _stream_readable.js:943:16\r\n    at process._tickCallback (node.js:419:13)\r\n```"},"comment":{"url":"https://api.github.com/repos/ludovic-gonthier/snowshoe/issues/comments/126687591","html_url":"https://github.com/ludovic-gonthier/snowshoe/issues/33#issuecomment-126687591","issue_url":"https://api.github.com/repos/ludovic-gonthier/snowshoe/issues/33","id":126687591,"user":{"login":"ludovic-gonthier","id":2995136,"avatar_url":"https://avatars.githubusercontent.com/u/2995136?v=3","gravatar_id":"","url":"https://api.github.com/users/ludovic-gonthier","html_url":"https://github.com/ludovic-gonthier","followers_url":"https://api.github.com/users/ludovic-gonthier/followers","following_url":"https://api.github.com/users/ludovic-gonthier/following{/other_user}","gists_url":"https://api.github.com/users/ludovic-gonthier/gists{/gist_id}","starred_url":"https://api.github.com/users/ludovic-gonthier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ludovic-gonthier/subscriptions","organizations_url":"https://api.github.com/users/ludovic-gonthier/orgs","repos_url":"https://api.github.com/users/ludovic-gonthier/repos","events_url":"https://api.github.com/users/ludovic-gonthier/events{/privacy}","received_events_url":"https://api.github.com/users/ludovic-gonthier/received_events","type":"User","site_admin":false},"created_at":"2015-07-31T13:08:20Z","updated_at":"2015-07-31T13:08:20Z","body":"For those running in the problem:\r\nA simple gulp clean + application restart solve the problem (temporarly)"}}