{"action":"created","issue":{"url":"https://api.github.com/repos/dillonkearns/elm-graphql/issues/89","repository_url":"https://api.github.com/repos/dillonkearns/elm-graphql","labels_url":"https://api.github.com/repos/dillonkearns/elm-graphql/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/dillonkearns/elm-graphql/issues/89/comments","events_url":"https://api.github.com/repos/dillonkearns/elm-graphql/issues/89/events","html_url":"https://github.com/dillonkearns/elm-graphql/issues/89","id":384174345,"node_id":"MDU6SXNzdWUzODQxNzQzNDU=","number":89,"title":"Missing information in Http Error","user":{"login":"sporto","id":1005498,"node_id":"MDQ6VXNlcjEwMDU0OTg=","avatar_url":"https://avatars1.githubusercontent.com/u/1005498?v=4","gravatar_id":"","url":"https://api.github.com/users/sporto","html_url":"https://github.com/sporto","followers_url":"https://api.github.com/users/sporto/followers","following_url":"https://api.github.com/users/sporto/following{/other_user}","gists_url":"https://api.github.com/users/sporto/gists{/gist_id}","starred_url":"https://api.github.com/users/sporto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sporto/subscriptions","organizations_url":"https://api.github.com/users/sporto/orgs","repos_url":"https://api.github.com/users/sporto/repos","events_url":"https://api.github.com/users/sporto/events{/privacy}","received_events_url":"https://api.github.com/users/sporto/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-11-26T04:56:00Z","updated_at":"2018-12-16T21:37:33Z","closed_at":"2018-12-16T21:28:43Z","author_association":"NONE","body":"Version 2 of the Http module removes some value information in the `Error` type.\r\n\r\nE.g. in 1:\r\n\r\n```\r\n`BadStatus (Response String)`.\r\n```\r\n\r\nBut in v2:\r\n\r\n```\r\nBadStatus Int\r\n```\r\n\r\nAt the moment when we have a bad input from the front-end we return 422 errors with details in the body. We then log these details in an error service like Rollbar.\r\n\r\nBut we don't accces to this information anymore through the Http Error. Http has `Response` (https://package.elm-lang.org/packages/elm/http/latest/Http#Response) which seems to be what previously `Error` was. \r\n\r\nI'm not sure how to handle this change, maybe elm-graphql should provide this instead:\r\n\r\n```\r\ntype Error parsedData\r\n    = GraphqlError\r\n          (PossiblyParsedData parsedData)\r\n          (List GraphqlError)\r\n    | HttpError Http.Response\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/dillonkearns/elm-graphql/issues/comments/447678143","html_url":"https://github.com/dillonkearns/elm-graphql/issues/89#issuecomment-447678143","issue_url":"https://api.github.com/repos/dillonkearns/elm-graphql/issues/89","id":447678143,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NzY3ODE0Mw==","user":{"login":"sporto","id":1005498,"node_id":"MDQ6VXNlcjEwMDU0OTg=","avatar_url":"https://avatars1.githubusercontent.com/u/1005498?v=4","gravatar_id":"","url":"https://api.github.com/users/sporto","html_url":"https://github.com/sporto","followers_url":"https://api.github.com/users/sporto/followers","following_url":"https://api.github.com/users/sporto/following{/other_user}","gists_url":"https://api.github.com/users/sporto/gists{/gist_id}","starred_url":"https://api.github.com/users/sporto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sporto/subscriptions","organizations_url":"https://api.github.com/users/sporto/orgs","repos_url":"https://api.github.com/users/sporto/repos","events_url":"https://api.github.com/users/sporto/events{/privacy}","received_events_url":"https://api.github.com/users/sporto/received_events","type":"User","site_admin":false},"created_at":"2018-12-16T21:37:33Z","updated_at":"2018-12-16T21:37:33Z","author_association":"NONE","body":"Version 4 is not showing in https://package.elm-lang.org/\r\nSomething went wrong with the publishing apparently"}}
{"actor":{"display_login":"sporto"}}