{"action":"created","issue":{"url":"https://api.github.com/repos/apollographql/react-apollo/issues/1079","repository_url":"https://api.github.com/repos/apollographql/react-apollo","labels_url":"https://api.github.com/repos/apollographql/react-apollo/issues/1079/labels{/name}","comments_url":"https://api.github.com/repos/apollographql/react-apollo/issues/1079/comments","events_url":"https://api.github.com/repos/apollographql/react-apollo/issues/1079/events","html_url":"https://github.com/apollographql/react-apollo/issues/1079","id":256378207,"number":1079,"title":"401 Authorization Error Displays As \"GraphQL error: undefined\"","user":{"login":"johndanek","id":6955277,"avatar_url":"https://avatars0.githubusercontent.com/u/6955277?v=4","gravatar_id":"","url":"https://api.github.com/users/johndanek","html_url":"https://github.com/johndanek","followers_url":"https://api.github.com/users/johndanek/followers","following_url":"https://api.github.com/users/johndanek/following{/other_user}","gists_url":"https://api.github.com/users/johndanek/gists{/gist_id}","starred_url":"https://api.github.com/users/johndanek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johndanek/subscriptions","organizations_url":"https://api.github.com/users/johndanek/orgs","repos_url":"https://api.github.com/users/johndanek/repos","events_url":"https://api.github.com/users/johndanek/events{/privacy}","received_events_url":"https://api.github.com/users/johndanek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-08T21:38:41Z","updated_at":"2017-09-11T08:24:49Z","closed_at":null,"author_association":"NONE","body":"**Intended outcome:**\r\nIn my React Native app, I attempted to make a GraphQL request without providing the necessary authorization information. Instead of getting an error indicating this, the only error message is \"undefined\". It would be massively helpful if the 401 Authorization error were showed to the developer.\r\n\r\n**Actual outcome:**\r\n![screen shot 2017-09-08 at 2 31 20 pm](https://user-images.githubusercontent.com/6955277/30231997-6a2a7a3a-94a2-11e7-92d8-e06b4d0bdf1a.png)\r\n\r\nI eventually figured out that it was a 401 causing havok by using Chrome Developer Tools:\r\n![screen shot 2017-09-08 at 2 37 01 pm](https://user-images.githubusercontent.com/6955277/30232157-350872e8-94a3-11e7-8629-885b4a9b26ad.png)\r\n\r\n\r\n**How to reproduce the issue:**\r\nAttempt to make a GraphQL request against a GraphQL endpoint that requires auth, but don't include it.\r\n\r\n**Version**\r\n- apollo-client@<n/a>\r\n- react-apollo@1.4.15\r\n"},"comment":{"url":"https://api.github.com/repos/apollographql/react-apollo/issues/comments/328455915","html_url":"https://github.com/apollographql/react-apollo/issues/1079#issuecomment-328455915","issue_url":"https://api.github.com/repos/apollographql/react-apollo/issues/1079","id":328455915,"user":{"login":"akomm","id":2409779,"avatar_url":"https://avatars0.githubusercontent.com/u/2409779?v=4","gravatar_id":"","url":"https://api.github.com/users/akomm","html_url":"https://github.com/akomm","followers_url":"https://api.github.com/users/akomm/followers","following_url":"https://api.github.com/users/akomm/following{/other_user}","gists_url":"https://api.github.com/users/akomm/gists{/gist_id}","starred_url":"https://api.github.com/users/akomm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akomm/subscriptions","organizations_url":"https://api.github.com/users/akomm/orgs","repos_url":"https://api.github.com/users/akomm/repos","events_url":"https://api.github.com/users/akomm/events{/privacy}","received_events_url":"https://api.github.com/users/akomm/received_events","type":"User","site_admin":false},"created_at":"2017-09-11T08:24:49Z","updated_at":"2017-09-11T08:24:49Z","author_association":"CONTRIBUTOR","body":"Do you have apollo store in your redux store?\r\nDo you use meta (storage) reducer to save your store over page reloads?"}}
{"actor":{"display_login":"akomm"}}