{"action":"closed","issue":{"url":"https://api.github.com/repos/j0k3r/banditore/issues/72","repository_url":"https://api.github.com/repos/j0k3r/banditore","labels_url":"https://api.github.com/repos/j0k3r/banditore/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/j0k3r/banditore/issues/72/comments","events_url":"https://api.github.com/repos/j0k3r/banditore/issues/72/events","html_url":"https://github.com/j0k3r/banditore/issues/72","id":218178401,"number":72,"title":"Handle error when user revoke its token","user":{"login":"j0k3r","id":62333,"avatar_url":"https://avatars1.githubusercontent.com/u/62333?v=3","gravatar_id":"","url":"https://api.github.com/users/j0k3r","html_url":"https://github.com/j0k3r","followers_url":"https://api.github.com/users/j0k3r/followers","following_url":"https://api.github.com/users/j0k3r/following{/other_user}","gists_url":"https://api.github.com/users/j0k3r/gists{/gist_id}","starred_url":"https://api.github.com/users/j0k3r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j0k3r/subscriptions","organizations_url":"https://api.github.com/users/j0k3r/orgs","repos_url":"https://api.github.com/users/j0k3r/repos","events_url":"https://api.github.com/users/j0k3r/events{/privacy}","received_events_url":"https://api.github.com/users/j0k3r/received_events","type":"User","site_admin":false},"labels":[{"id":539890168,"url":"https://api.github.com/repos/j0k3r/banditore/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-30T12:20:24Z","updated_at":"2017-04-08T13:33:59Z","closed_at":"2017-04-08T13:33:59Z","body":"If a user revoke its token, the rate limit will always fail and generate too much errors.\r\n\r\n> [2017-03-30 13:10:06] app.ERROR: [Ack] An exception occurred. Message 1 has been nack'ed. {\"swarrot_processor\":\"ack\",\"exception\":\"[object] (Github\\\\Exception\\\\RuntimeException(code: 401): Bad credentials at /www/vendor/knplabs/github-api/lib/Github/HttpClient/Plugin/GithubExceptionThrower.php:87)\"}\r\n\r\nThe full strace:\r\n\r\n> Github\\Exception\\RuntimeException: Bad credentials\r\n33 vendor/knplabs/github-api/lib/Github/HttpClient/Plugin/GithubExceptionThrower.php(87): Github\\HttpClient\\Plugin\\{closure}\r\n32 vendor/php-http/httplug/src/Promise/HttpFulfilledPromise.php(34): then\r\n31 vendor/knplabs/github-api/lib/Github/HttpClient/Plugin/GithubExceptionThrower.php(88): handleRequest\r\n30 vendor/php-http/client-common/src/PluginClient.php(156): Http\\Client\\Common\\{closure}\r\n29 vendor/php-http/client-common/src/PluginClient.php(170): Http\\Client\\Common\\{closure}\r\n28 vendor/php-http/client-common/src/PluginClient.php(87): sendRequest\r\n27 vendor/php-http/client-common/src/HttpMethodsClient.php(203): sendRequest\r\n26 vendor/php-http/client-common/src/HttpMethodsClient.php(193): send\r\n25 vendor/php-http/client-common/src/HttpMethodsClient.php(61): get\r\n24 vendor/knplabs/github-api/lib/Github/Api/AbstractApi.php(81): get\r\n23 vendor/knplabs/github-api/lib/Github/Api/RateLimit.php(20): getRateLimits\r\n22 src/AppBundle/Github/RateLimitTrait.php(20): getRateLimits\r\n21 src/AppBundle/Github/ClientDiscovery.php(90): find\r\n20 var/cache/prod/appProdProjectContainer.php(433): getBanditore_Client_GithubService\r\n19 vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php(310): get\r\n18 var/cache/prod/appProdProjectContainer.php(474): getBanditore_Consumer_SyncStarredReposService\r\n17 var/cache/prod/appProdProjectContainer.php(465): {closure}\r\n16 var/cache/prod/appProdProjectContainer.php(5004): __invoke\r\n15 var/cache/prod/appProdProjectContainer.php(5004): process\r\n14 vendor/swarrot/swarrot/src/Swarrot/Processor/Ack/AckProcessor.php(47): process\r\n13 vendor/swarrot/swarrot/src/Swarrot/Processor/ExceptionCatcher/ExceptionCatcherProcessor.php(33): process\r\n12 vendor/swarrot/swarrot/src/Swarrot/Processor/Retry/RetryProcessor.php(32): process\r\n11 vendor/swarrot/swarrot/src/Swarrot/Processor/Doctrine/ConnectionProcessor.php(71): process\r\n10 vendor/swarrot/swarrot/src/Swarrot/Processor/MaxMessages/MaxMessagesProcessor.php(43): process\r\n9 vendor/swarrot/swarrot/src/Swarrot/Processor/NewRelic/NewRelicProcessor.php(45): process\r\n8 vendor/swarrot/swarrot/src/Swarrot/Processor/Stack/StackedProcessor.php(67): process\r\n7 vendor/swarrot/swarrot/src/Swarrot/Consumer.php(80): consume\r\n6 vendor/swarrot/swarrot-bundle/Command/SwarrotCommand.php(97): execute\r\n5 vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php(265): run\r\n4 vendor/symfony/symfony/src/Symfony/Component/Console/Application.php(852): doRunCommand\r\n3 vendor/symfony/symfony/src/Symfony/Component/Console/Application.php(189): doRun\r\n2 vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php(80): doRun\r\n1 vendor/symfony/symfony/src/Symfony/Component/Console/Application.php(120): run\r\n0 bin/console(28): null"}}
{"actor":{"display_login":"j0k3r"}}