{"action":"opened","issue":{"url":"https://api.github.com/repos/axel3rd/mpg-coach-bot/issues/39","repository_url":"https://api.github.com/repos/axel3rd/mpg-coach-bot","labels_url":"https://api.github.com/repos/axel3rd/mpg-coach-bot/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/axel3rd/mpg-coach-bot/issues/39/comments","events_url":"https://api.github.com/repos/axel3rd/mpg-coach-bot/issues/39/events","html_url":"https://github.com/axel3rd/mpg-coach-bot/issues/39","id":391811382,"node_id":"MDU6SXNzdWUzOTE4MTEzODI=","number":39,"title":"Support end of season","user":{"login":"axel3rd","id":2912441,"node_id":"MDQ6VXNlcjI5MTI0NDE=","avatar_url":"https://avatars3.githubusercontent.com/u/2912441?v=4","gravatar_id":"","url":"https://api.github.com/users/axel3rd","html_url":"https://github.com/axel3rd","followers_url":"https://api.github.com/users/axel3rd/followers","following_url":"https://api.github.com/users/axel3rd/following{/other_user}","gists_url":"https://api.github.com/users/axel3rd/gists{/gist_id}","starred_url":"https://api.github.com/users/axel3rd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axel3rd/subscriptions","organizations_url":"https://api.github.com/users/axel3rd/orgs","repos_url":"https://api.github.com/users/axel3rd/repos","events_url":"https://api.github.com/users/axel3rd/events{/privacy}","received_events_url":"https://api.github.com/users/axel3rd/received_events","type":"User","site_admin":false},"labels":[{"id":1062661375,"node_id":"MDU6TGFiZWwxMDYyNjYxMzc1","url":"https://api.github.com/repos/axel3rd/mpg-coach-bot/labels/bug","name":"bug","color":"d73a4a","default":true}],"state":"open","locked":false,"assignee":{"login":"axel3rd","id":2912441,"node_id":"MDQ6VXNlcjI5MTI0NDE=","avatar_url":"https://avatars3.githubusercontent.com/u/2912441?v=4","gravatar_id":"","url":"https://api.github.com/users/axel3rd","html_url":"https://github.com/axel3rd","followers_url":"https://api.github.com/users/axel3rd/followers","following_url":"https://api.github.com/users/axel3rd/following{/other_user}","gists_url":"https://api.github.com/users/axel3rd/gists{/gist_id}","starred_url":"https://api.github.com/users/axel3rd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axel3rd/subscriptions","organizations_url":"https://api.github.com/users/axel3rd/orgs","repos_url":"https://api.github.com/users/axel3rd/repos","events_url":"https://api.github.com/users/axel3rd/events{/privacy}","received_events_url":"https://api.github.com/users/axel3rd/received_events","type":"User","site_admin":false},"assignees":[{"login":"axel3rd","id":2912441,"node_id":"MDQ6VXNlcjI5MTI0NDE=","avatar_url":"https://avatars3.githubusercontent.com/u/2912441?v=4","gravatar_id":"","url":"https://api.github.com/users/axel3rd","html_url":"https://github.com/axel3rd","followers_url":"https://api.github.com/users/axel3rd/followers","following_url":"https://api.github.com/users/axel3rd/following{/other_user}","gists_url":"https://api.github.com/users/axel3rd/gists{/gist_id}","starred_url":"https://api.github.com/users/axel3rd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axel3rd/subscriptions","organizations_url":"https://api.github.com/users/axel3rd/orgs","repos_url":"https://api.github.com/users/axel3rd/repos","events_url":"https://api.github.com/users/axel3rd/events{/privacy}","received_events_url":"https://api.github.com/users/axel3rd/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/axel3rd/mpg-coach-bot/milestones/3","html_url":"https://github.com/axel3rd/mpg-coach-bot/milestone/3","labels_url":"https://api.github.com/repos/axel3rd/mpg-coach-bot/milestones/3/labels","id":3721740,"node_id":"MDk6TWlsZXN0b25lMzcyMTc0MA==","number":3,"title":"1.2","description":"Propose to sell and buy some players to optimize team.","creator":{"login":"axel3rd","id":2912441,"node_id":"MDQ6VXNlcjI5MTI0NDE=","avatar_url":"https://avatars3.githubusercontent.com/u/2912441?v=4","gravatar_id":"","url":"https://api.github.com/users/axel3rd","html_url":"https://github.com/axel3rd","followers_url":"https://api.github.com/users/axel3rd/followers","following_url":"https://api.github.com/users/axel3rd/following{/other_user}","gists_url":"https://api.github.com/users/axel3rd/gists{/gist_id}","starred_url":"https://api.github.com/users/axel3rd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axel3rd/subscriptions","organizations_url":"https://api.github.com/users/axel3rd/orgs","repos_url":"https://api.github.com/users/axel3rd/repos","events_url":"https://api.github.com/users/axel3rd/events{/privacy}","received_events_url":"https://api.github.com/users/axel3rd/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":0,"state":"open","created_at":"2018-10-08T17:46:25Z","updated_at":"2018-12-17T17:17:46Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2018-12-17T17:17:46Z","updated_at":"2018-12-17T17:17:46Z","closed_at":null,"author_association":"OWNER","body":"**Describe the bug**\r\n\r\nWhen no more match are available in MPG season (*Plus de match disponible.* in **Coach** screen), this exception occurs:\r\n\r\n```\r\n========== League Name ==========\r\nException in thread \"main\" javax.ws.rs.ProcessingException: Error reading entity from input stream.\r\n        at org.glassfish.jersey.message.internal.InboundMessageContext.readEntity(InboundMessageContext.java:889)\r\n        at org.glassfish.jersey.message.internal.InboundMessageContext.readEntity(InboundMessageContext.java:808)\r\n        at org.glassfish.jersey.client.ClientResponse.readEntity(ClientResponse.java:321)\r\n        at org.glassfish.jersey.client.InboundJaxrsResponse$1.call(InboundJaxrsResponse.java:115)\r\n        at org.glassfish.jersey.internal.Errors.process(Errors.java:316)\r\n        at org.glassfish.jersey.internal.Errors.process(Errors.java:298)\r\n        at org.glassfish.jersey.internal.Errors.process(Errors.java:229)\r\n        at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:389)\r\n        at org.glassfish.jersey.client.InboundJaxrsResponse.runInScopeIfPossible(InboundJaxrsResponse.java:264)\r\n        at org.glassfish.jersey.client.InboundJaxrsResponse.readEntity(InboundJaxrsResponse.java:112)\r\n        at org.blondin.mpg.AbstractClient.call(AbstractClient.java:117)\r\n        at org.blondin.mpg.AbstractClient.get(AbstractClient.java:63)\r\n        at org.blondin.mpg.root.MpgClient.getCoach(MpgClient.java:42)\r\n        at org.blondin.mpg.Main.process(Main.java:48)\r\n        at org.blondin.mpg.Main.main(Main.java:40)\r\nCaused by: com.fasterxml.jackson.databind.JsonMappingException: Root name 'success' does not match expected ('data') for type [simple type, class org.blondin.mpg.root.model.Coach]\r\n at [Source: org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@f9af83; line: 1, column: 2]\r\n        at com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:270)\r\n        at com.fasterxml.jackson.databind.DeserializationContext.reportMappingException(DeserializationContext.java:1234)\r\n        at com.fasterxml.jackson.databind.ObjectReader._unwrapAndDeserialize(ObjectReader.java:1693)\r\n        at com.fasterxml.jackson.databind.ObjectReader._bind(ObjectReader.java:1580)\r\n        at com.fasterxml.jackson.databind.ObjectReader.readValue(ObjectReader.java:964)\r\n        at org.glassfish.jersey.jackson.internal.jackson.jaxrs.base.ProviderBase.readFrom(ProviderBase.java:838)\r\n        at org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$TerminalReaderInterceptor.invokeReadFrom(ReaderInterceptorExecutor.java:257)\r\n        at org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$TerminalReaderInterceptor.aroundReadFrom(ReaderInterceptorExecutor.java:236)\r\n        at org.glassfish.jersey.message.internal.ReaderInterceptorExecutor.proceed(ReaderInterceptorExecutor.java:156)\r\n        at org.glassfish.jersey.message.internal.MessageBodyFactory.readFrom(MessageBodyFactory.java:1091)\r\n        at org.glassfish.jersey.message.internal.InboundMessageContext.readEntity(InboundMessageContext.java:874)\r\n        ... 14 more\r\n```\r\n\r\nA clear and concise description of what the bug is, with a copy/paste of Java exception if present.\r\n\r\n**Join debug files**\r\n\r\nThe result of  `GET /league/[yourLeagueId]/coach` is (in this case):\r\n\r\n```\r\n{\"success\":\"noMoreGames\"}\r\n```\r\n\r\n**Expected behavior**\r\n\r\nIt should not crash, but normal exist with correct message."}}
{"actor":{"display_login":"axel3rd"}}