{"action":"created","issue":{"url":"https://api.github.com/repos/apollographql/apollo-cli/issues/528","repository_url":"https://api.github.com/repos/apollographql/apollo-cli","labels_url":"https://api.github.com/repos/apollographql/apollo-cli/issues/528/labels{/name}","comments_url":"https://api.github.com/repos/apollographql/apollo-cli/issues/528/comments","events_url":"https://api.github.com/repos/apollographql/apollo-cli/issues/528/events","html_url":"https://github.com/apollographql/apollo-cli/issues/528","id":347608600,"node_id":"MDU6SXNzdWUzNDc2MDg2MDA=","number":528,"title":"Authorization header issue when downloading schema","user":{"login":"tkallioras","id":11908520,"node_id":"MDQ6VXNlcjExOTA4NTIw","avatar_url":"https://avatars0.githubusercontent.com/u/11908520?v=4","gravatar_id":"","url":"https://api.github.com/users/tkallioras","html_url":"https://github.com/tkallioras","followers_url":"https://api.github.com/users/tkallioras/followers","following_url":"https://api.github.com/users/tkallioras/following{/other_user}","gists_url":"https://api.github.com/users/tkallioras/gists{/gist_id}","starred_url":"https://api.github.com/users/tkallioras/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkallioras/subscriptions","organizations_url":"https://api.github.com/users/tkallioras/orgs","repos_url":"https://api.github.com/users/tkallioras/repos","events_url":"https://api.github.com/users/tkallioras/events{/privacy}","received_events_url":"https://api.github.com/users/tkallioras/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-08-04T10:33:27Z","updated_at":"2018-10-25T14:49:28Z","closed_at":null,"author_association":"NONE","body":"I am using apollo-cli on MacOS 10.14 beta. I am trying to run an introspection query on a local GraphQL server, however I get the following error:\r\n\r\n`TypeError: Cannot read property 'trim' of undefined`\r\n\r\nwith the following stack:\r\n\r\n```\r\nTypeError: Cannot read property 'trim' of undefined\r\n    at Object.parse (~/.nvm/versions/node/v8.11.3/lib/node_modules/apollo/lib/commands/schema/download.js:49:57)\r\n    at Parser._flags (~/.nvm/versions/node/v8.11.3/lib/node_modules/apollo/node_modules/@oclif/parser/lib/parse.js:149:49)\r\n    at Parser.parse (~/.nvm/versions/node/v8.11.3/lib/node_modules/apollo/node_modules/@oclif/parser/lib/parse.js:112:28)\r\n    at Object.parse (~/.nvm/versions/node/v8.11.3/lib/node_modules/apollo/node_modules/@oclif/parser/lib/index.js:25:27)\r\n    at SchemaDownload.parse (~/.nvm/versions/node/v8.11.3/lib/node_modules/apollo/node_modules/@oclif/command/lib/command.js:68:41)\r\n    at SchemaDownload.run (~/.nvm/versions/node/v8.11.3/lib/node_modules/apollo/lib/commands/schema/download.js:13:38)\r\n    at SchemaDownload._run (~/.nvm/versions/node/v8.11.3/lib/node_modules/apollo/node_modules/@oclif/command/lib/command.js:29:31)\r\n    at <anonymous>\r\n```\r\n\r\nIt only happens when I use an authorization header (my endpoint is accessed through an authorization token). Using the same introspection with another client and the same header, it works as expected."},"comment":{"url":"https://api.github.com/repos/apollographql/apollo-cli/issues/comments/433081282","html_url":"https://github.com/apollographql/apollo-cli/issues/528#issuecomment-433081282","issue_url":"https://api.github.com/repos/apollographql/apollo-cli/issues/528","id":433081282,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzA4MTI4Mg==","user":{"login":"moonray","id":281245,"node_id":"MDQ6VXNlcjI4MTI0NQ==","avatar_url":"https://avatars3.githubusercontent.com/u/281245?v=4","gravatar_id":"","url":"https://api.github.com/users/moonray","html_url":"https://github.com/moonray","followers_url":"https://api.github.com/users/moonray/followers","following_url":"https://api.github.com/users/moonray/following{/other_user}","gists_url":"https://api.github.com/users/moonray/gists{/gist_id}","starred_url":"https://api.github.com/users/moonray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moonray/subscriptions","organizations_url":"https://api.github.com/users/moonray/orgs","repos_url":"https://api.github.com/users/moonray/repos","events_url":"https://api.github.com/users/moonray/events{/privacy}","received_events_url":"https://api.github.com/users/moonray/received_events","type":"User","site_admin":false},"created_at":"2018-10-25T14:49:28Z","updated_at":"2018-10-25T14:49:28Z","author_association":"NONE","body":"Same issue with authorization token header"}}
{"actor":{"display_login":"moonray"}}