{"action":"created","issue":{"url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/8502","repository_url":"https://api.github.com/repos/gatsbyjs/gatsby","labels_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/8502/labels{/name}","comments_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/8502/comments","events_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/8502/events","html_url":"https://github.com/gatsbyjs/gatsby/issues/8502","id":363234265,"node_id":"MDU6SXNzdWUzNjMyMzQyNjU=","number":8502,"title":"gatsby info not working","user":{"login":"ukch","id":973865,"node_id":"MDQ6VXNlcjk3Mzg2NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/973865?v=4","gravatar_id":"","url":"https://api.github.com/users/ukch","html_url":"https://github.com/ukch","followers_url":"https://api.github.com/users/ukch/followers","following_url":"https://api.github.com/users/ukch/following{/other_user}","gists_url":"https://api.github.com/users/ukch/gists{/gist_id}","starred_url":"https://api.github.com/users/ukch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ukch/subscriptions","organizations_url":"https://api.github.com/users/ukch/orgs","repos_url":"https://api.github.com/users/ukch/repos","events_url":"https://api.github.com/users/ukch/events{/privacy}","received_events_url":"https://api.github.com/users/ukch/received_events","type":"User","site_admin":false},"labels":[{"id":1038051271,"node_id":"MDU6TGFiZWwxMDM4MDUxMjcx","url":"https://api.github.com/repos/gatsbyjs/gatsby/labels/status:%20awaiting%20author%20response","name":"status: awaiting author response","color":"f7c309","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-09-24T16:57:35Z","updated_at":"2018-10-18T10:20:08Z","closed_at":null,"author_association":"NONE","body":"<!--\r\n  Please fill out each section below, otherwise your issue will be closed. This info allows Gatsby maintainers to diagnose (and fix!) your issue as quickly as possible.\r\n\r\n  Useful Links:\r\n  - Documentation: https://www.gatsbyjs.org/docs/\r\n  - How to File an Issue: https://www.gatsbyjs.org/docs/how-to-file-an-issue/\r\n\r\n  Before opening a new issue, please search existing issues: https://github.com/gatsbyjs/gatsby/issues\r\n-->\r\n\r\n## Description\r\nWhen I run `gatsby info` or `gatsby info --clipboard`, I see an error.\r\n\r\n### Steps to reproduce\r\n\r\nMy gatsby config:\r\n```javascript\r\nrequire(\"dotenv\").config({\r\n    path: `.env.${process.env.NODE_ENV}`,\r\n});\r\nmodule.exports = {\r\n    siteMetadata: {\r\n        title: \"MY SITE TITLE\",\r\n        api: {\r\n            url: process.env.API_URL,\r\n        },\r\n    },\r\n    plugins: [\r\n        \"gatsby-plugin-postcss\",\r\n        \"gatsby-plugin-react-helmet\",\r\n    ]\r\n}\r\n```\r\n\r\n### Expected result\r\n\r\nGatsby info should be displayed\r\n\r\n### Actual result\r\n\r\n```\r\n$ gatsby info\r\nerror Cannot read property '1' of null\r\n\r\n\r\n  TypeError: Cannot read property '1' of null\r\n  \r\n  - envinfo.js:1 a.run.then.e\r\n    [lib]/[gatsby-cli]/[envinfo]/dist/envinfo.js:1:97255\r\n  \r\n  - util.js:16 tryCatcher\r\n    [lib]/[gatsby-cli]/[bluebird]/js/release/util.js:16:23\r\n  \r\n  - promise.js:512 Promise._settlePromiseFromHandler\r\n    [lib]/[gatsby-cli]/[bluebird]/js/release/promise.js:512:31\r\n  \r\n  - promise.js:569 Promise._settlePromise\r\n    [lib]/[gatsby-cli]/[bluebird]/js/release/promise.js:569:18\r\n  \r\n  - promise.js:614 Promise._settlePromise0\r\n    [lib]/[gatsby-cli]/[bluebird]/js/release/promise.js:614:10\r\n  \r\n  - promise.js:694 Promise._settlePromises\r\n    [lib]/[gatsby-cli]/[bluebird]/js/release/promise.js:694:18\r\n  \r\n  - async.js:138 _drainQueueStep\r\n    [lib]/[gatsby-cli]/[bluebird]/js/release/async.js:138:12\r\n  \r\n  - async.js:131 _drainQueue\r\n    [lib]/[gatsby-cli]/[bluebird]/js/release/async.js:131:9\r\n  \r\n  - async.js:147 Async._drainQueues\r\n    [lib]/[gatsby-cli]/[bluebird]/js/release/async.js:147:5\r\n  \r\n  - async.js:17 Immediate.Async.drainQueues [as _onImmediate]\r\n    [lib]/[gatsby-cli]/[bluebird]/js/release/async.js:17:14\r\n  \r\n\r\nerror UNHANDLED REJECTION\r\n\r\n\r\n  TypeError: Cannot read property '1' of null\r\n  \r\n  - envinfo.js:1 a.run.then.e\r\n    [lib]/[gatsby-cli]/[envinfo]/dist/envinfo.js:1:97255\r\n  \r\n  - util.js:16 tryCatcher\r\n    [lib]/[gatsby-cli]/[bluebird]/js/release/util.js:16:23\r\n  \r\n  - promise.js:512 Promise._settlePromiseFromHandler\r\n    [lib]/[gatsby-cli]/[bluebird]/js/release/promise.js:512:31\r\n  \r\n  - promise.js:569 Promise._settlePromise\r\n    [lib]/[gatsby-cli]/[bluebird]/js/release/promise.js:569:18\r\n  \r\n  - promise.js:614 Promise._settlePromise0\r\n    [lib]/[gatsby-cli]/[bluebird]/js/release/promise.js:614:10\r\n  \r\n  - promise.js:694 Promise._settlePromises\r\n    [lib]/[gatsby-cli]/[bluebird]/js/release/promise.js:694:18\r\n  \r\n  - async.js:138 _drainQueueStep\r\n    [lib]/[gatsby-cli]/[bluebird]/js/release/async.js:138:12\r\n  \r\n  - async.js:131 _drainQueue\r\n    [lib]/[gatsby-cli]/[bluebird]/js/release/async.js:131:9\r\n  \r\n  - async.js:147 Async._drainQueues\r\n    [lib]/[gatsby-cli]/[bluebird]/js/release/async.js:147:5\r\n  \r\n  - async.js:17 Immediate.Async.drainQueues [as _onImmediate]\r\n    [lib]/[gatsby-cli]/[bluebird]/js/release/async.js:17:14\r\n```\r\n\r\n### Environment\r\n\r\nFor obvious reasons I can't paste the full output of `gatsby info`, but here are some details:\r\n```\r\n$ uname -sr\r\nLinux 4.16.0-2-amd64\r\n$ which node\r\n/usr/local/nvm/versions/node/v9.2.1/bin/node\r\n$ node --version\r\nv9.2.1\r\n$ which gatsby\r\n/usr/local/nvm/versions/node/v9.2.1/bin/gatsby\r\n$ gatsby --version\r\n2.4.1\r\n```"},"comment":{"url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/comments/430955875","html_url":"https://github.com/gatsbyjs/gatsby/issues/8502#issuecomment-430955875","issue_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/8502","id":430955875,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMDk1NTg3NQ==","user":{"login":"stefanprobst","id":20753323,"node_id":"MDQ6VXNlcjIwNzUzMzIz","avatar_url":"https://avatars0.githubusercontent.com/u/20753323?v=4","gravatar_id":"","url":"https://api.github.com/users/stefanprobst","html_url":"https://github.com/stefanprobst","followers_url":"https://api.github.com/users/stefanprobst/followers","following_url":"https://api.github.com/users/stefanprobst/following{/other_user}","gists_url":"https://api.github.com/users/stefanprobst/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanprobst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanprobst/subscriptions","organizations_url":"https://api.github.com/users/stefanprobst/orgs","repos_url":"https://api.github.com/users/stefanprobst/repos","events_url":"https://api.github.com/users/stefanprobst/events{/privacy}","received_events_url":"https://api.github.com/users/stefanprobst/received_events","type":"User","site_admin":false},"created_at":"2018-10-18T10:20:08Z","updated_at":"2018-10-18T10:20:08Z","author_association":"CONTRIBUTOR","body":"This works fine for me in a Debian stretch VM. What version of Debian are you using?"}}
{"actor":{"display_login":"stefanprobst"}}