{"action":"created","issue":{"url":"https://api.github.com/repos/electron-userland/electron-forge/issues/493","repository_url":"https://api.github.com/repos/electron-userland/electron-forge","labels_url":"https://api.github.com/repos/electron-userland/electron-forge/issues/493/labels{/name}","comments_url":"https://api.github.com/repos/electron-userland/electron-forge/issues/493/comments","events_url":"https://api.github.com/repos/electron-userland/electron-forge/issues/493/events","html_url":"https://github.com/electron-userland/electron-forge/issues/493","id":316673908,"number":493,"title":"Publishing to github fails due to undefined","user":{"login":"positlabs","id":1918844,"avatar_url":"https://avatars2.githubusercontent.com/u/1918844?v=4","gravatar_id":"","url":"https://api.github.com/users/positlabs","html_url":"https://github.com/positlabs","followers_url":"https://api.github.com/users/positlabs/followers","following_url":"https://api.github.com/users/positlabs/following{/other_user}","gists_url":"https://api.github.com/users/positlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/positlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/positlabs/subscriptions","organizations_url":"https://api.github.com/users/positlabs/orgs","repos_url":"https://api.github.com/users/positlabs/repos","events_url":"https://api.github.com/users/positlabs/events{/privacy}","received_events_url":"https://api.github.com/users/positlabs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-04-23T06:12:56Z","updated_at":"2018-05-03T17:11:28Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nThanks for filing an issue!\r\n\r\nIf you have a question, consider searching and asking in other Electron community sites,\r\nso that more people have a chance to help you: https://github.com/electron/electron#community\r\n\r\nSpecific issues about the templates that are available by default when creating a new\r\nElectron Forge project should be filed in its GitHub repository:\r\nhttps://github.com/electron-userland/electron-forge-templates\r\n\r\nPlease check off all of the steps as they are completed by replacing [ ] with [x].\r\n-->\r\n\r\n* [x] I have read the [contribution documentation](https://github.com/electron-userland/electron-forge/blob/master/CONTRIBUTING.md) for this project.\r\n* [x] I agree to follow the [code of conduct](https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md) that this project follows, as appropriate.\r\n* [x] I have searched the issue tracker for an issue that matches the one I want to file, without success.\r\n\r\n**Please describe your issue:**\r\n\r\nUsing v5.2.0, attempting to publish to github releases. Seems like the github api host (api.github.com) is undefined for some reason. Possibly an issue with octokit\r\n\r\n<!-- For bugs and questions, please answer these questions to the best of your ability. -->\r\n\r\n**Console output when you run `electron-forge` with the environment variable `DEBUG=electron-forge:*`. (Instructions on how to do so [here](https://www.npmjs.com/package/debug#usage)). Please include the stack trace if one exists.**\r\n\r\n```\r\njosh:gif-goat pixelfiend$ DEBUG=electron-forge:* electron-forge publish\r\nWARNING: DEBUG environment variable detected.  Progress indicators will be sent over electron-forge:lifecycle\r\n  electron-forge:lifecycle Process Started: Checking your system +0ms\r\n  electron-forge:lifecycle Process Succeeded: Checking your system +1s\r\n  electron-forge:runtime-config setting key: verbose to value: false +0ms\r\nWARNING: DEBUG environment variable detected.  Progress indicators will be sent over electron-forge:lifecycle\r\n  electron-forge:publish triggering make +0ms\r\n  electron-forge:lifecycle Process Started: Resolving Forge Config +0ms\r\n  electron-forge:project-resolver searching for project in: /Users/pixelfiend/workspace/gif-goat +0ms\r\n  electron-forge:project-resolver electron-forge compatible package.json found in /Users/pixelfiend/workspace/gif-goat/package.json +1ms\r\n  electron-forge:lifecycle Process Succeeded: Resolving Forge Config +8ms\r\n  electron-forge:require-search searching [ '../makers/darwin/dmg.js',\r\n  '../makers/generic/dmg.js',\r\n  'electron-forge-maker-dmg',\r\n  'dmg',\r\n  '/Users/pixelfiend/workspace/gif-goat/dmg',\r\n  '/Users/pixelfiend/workspace/gif-goat/node_modules/dmg',\r\n  '/Users/pixelfiend/.nvm/versions/node/v6.14.1/lib/node_modules/electron-forge/dist/makers/darwin/dmg.js',\r\n  '/Users/pixelfiend/.nvm/versions/node/v6.14.1/lib/node_modules/electron-forge/dist/makers/generic/dmg.js',\r\n  '/Users/pixelfiend/.nvm/versions/node/v6.14.1/lib/node_modules/electron-forge/dist/api/electron-forge-maker-dmg',\r\n  '/Users/pixelfiend/.nvm/versions/node/v6.14.1/lib/node_modules/electron-forge/dist/api/dmg',\r\n  '/Users/pixelfiend/workspace/gif-goat/dmg',\r\n  '/Users/pixelfiend/workspace/gif-goat/node_modules/dmg',\r\n  '/Users/pixelfiend/.nvm/versions/node/v6.14.1/lib/node_modules/electron-forge/dist/api/makers/darwin/dmg.js',\r\n  '/Users/pixelfiend/.nvm/versions/node/v6.14.1/lib/node_modules/electron-forge/dist/api/makers/generic/dmg.js',\r\n  '/Users/pixelfiend/.nvm/versions/node/v6.14.1/lib/node_modules/electron-forge/dist/api/node_modules/electron-forge-maker-dmg',\r\n  '/Users/pixelfiend/.nvm/versions/node/v6.14.1/lib/node_modules/electron-forge/dist/api/node_modules/dmg',\r\n  '/Users/pixelfiend/workspace/gif-goat/dmg',\r\n  '/Users/pixelfiend/workspace/gif-goat/node_modules/dmg' ] relative to /Users/pixelfiend/.nvm/versions/node/v6.14.1/lib/node_modules/electron-forge/dist/api +0ms\r\n  electron-forge:require-search testing ../makers/darwin/dmg.js +6ms\r\nWe need to package your application before we can make it\r\n  electron-forge:lifecycle Process Started: Preparing to Package Application for arch: x64 +15ms\r\n  electron-forge:project-resolver searching for project in: /Users/pixelfiend/workspace/gif-goat +20ms\r\n  electron-forge:project-resolver electron-forge compatible package.json found in /Users/pixelfiend/workspace/gif-goat/package.json +1ms\r\n  electron-forge:hook could not find hook: generateAssets +0ms\r\n  electron-forge:hook could not find hook: prePackage +0ms\r\n  electron-forge:packager packaging with options { asar: false,\r\n  overwrite: true,\r\n  packageManager: 'npm',\r\n  icon: './src/assets/imgs/icon-1024.png',\r\n  afterCopy: [ [Function] ],\r\n  afterExtract: [ [Function] ],\r\n  afterPrune: [ [Function] ],\r\n  dir: '/Users/pixelfiend/workspace/gif-goat',\r\n  arch: 'x64',\r\n  platform: 'darwin',\r\n  out: '/Users/pixelfiend/workspace/gif-goat/out',\r\n  electronVersion: '1.8.4',\r\n  quiet: true } +0ms\r\n  electron-forge:lifecycle Process Succeeded: Preparing to Package Application for arch: x64 +50s\r\n  electron-forge:lifecycle Process Started: Compiling Application +2ms\r\n  electron-forge:lifecycle Process Succeeded: Compiling Application +2s\r\n  electron-forge:lifecycle Process Started: Preparing native dependencies +13s\r\n  electron-forge:lifecycle Process Succeeded: Preparing native dependencies +737ms\r\n  electron-forge:lifecycle Process Started: Packaging Application +1ms\r\n  electron-forge:hook could not find hook: postPackage +1m\r\n  electron-forge:lifecycle Process Succeeded: Packaging Application +12s\r\nMaking for the following targets:\r\n  electron-forge:hook could not find hook: preMake +3ms\r\n  electron-forge:lifecycle Process Started: Making for target: dmg - On platform: darwin - For arch: x64 +6ms\r\n  electron-forge:lifecycle Process Succeeded: Making for target: dmg - On platform: darwin - For arch: x64 +22s\r\n  electron-forge:hook could not find hook: postMake +22s\r\n  electron-forge:project-resolver searching for project in: /Users/pixelfiend/workspace/gif-goat +2m\r\n  electron-forge:project-resolver electron-forge compatible package.json found in /Users/pixelfiend/workspace/gif-goat/package.json +1ms\r\n  electron-forge:lifecycle Process Started: Resolving publish target: github +2ms\r\n  electron-forge:require-search searching [ '../publishers/github.js',\r\n  'electron-forge-publisher-github',\r\n  'github',\r\n  '/Users/pixelfiend/workspace/gif-goat/github',\r\n  '/Users/pixelfiend/workspace/gif-goat/node_modules/github',\r\n  '/Users/pixelfiend/.nvm/versions/node/v6.14.1/lib/node_modules/electron-forge/dist/publishers/github.js',\r\n  '/Users/pixelfiend/.nvm/versions/node/v6.14.1/lib/node_modules/electron-forge/dist/api/electron-forge-publisher-github',\r\n  '/Users/pixelfiend/.nvm/versions/node/v6.14.1/lib/node_modules/electron-forge/dist/api/github',\r\n  '/Users/pixelfiend/workspace/gif-goat/github',\r\n  '/Users/pixelfiend/workspace/gif-goat/node_modules/github',\r\n  '/Users/pixelfiend/.nvm/versions/node/v6.14.1/lib/node_modules/electron-forge/dist/api/publishers/github.js',\r\n  '/Users/pixelfiend/.nvm/versions/node/v6.14.1/lib/node_modules/electron-forge/dist/api/node_modules/electron-forge-publisher-github',\r\n  '/Users/pixelfiend/.nvm/versions/node/v6.14.1/lib/node_modules/electron-forge/dist/api/node_modules/github',\r\n  '/Users/pixelfiend/workspace/gif-goat/github',\r\n  '/Users/pixelfiend/workspace/gif-goat/node_modules/github' ] relative to /Users/pixelfiend/.nvm/versions/node/v6.14.1/lib/node_modules/electron-forge/dist/api +2m\r\n  electron-forge:require-search testing ../publishers/github.js +4ms\r\n  electron-forge:lifecycle Process Succeeded: Resolving publish target: github +262ms\r\n  electron-forge:lifecycle Process Started: Searching for target release +3ms\r\nDEPRECATED: protocol option is no longer supported\r\n  electron-forge:lifecycle Process Failed: Searching for target release +116ms\r\n\r\nAn unhandled error has occurred inside Forge:\r\nrequest to https://undefined/repos/positlabs/gif-goat/releases?per_page=100 failed, reason: getaddrinfo ENOTFOUND undefined undefined:443\r\nHttpError: request to https://undefined/repos/positlabs/gif-goat/releases?per_page=100 failed, reason: getaddrinfo ENOTFOUND undefined undefined:443\r\n    at fetch.then.then.catch.error (/Users/pixelfiend/.nvm/versions/node/v6.14.1/lib/node_modules/electron-forge/node_modules/@octokit/rest/lib/request/request.js:88:13)\r\n    at process._tickCallback (internal/process/next_tick.js:109:7)\r\n```\r\n\r\n**What command line arguments are you passing?**\r\n\r\n```\r\nelectron-forge publish --target=github --platform=darwin\r\n```\r\n\r\n**What does your `config.forge` data in `package.json` look like?**\r\n\r\n```\r\n  \"config\": {\r\n    \"forge\": {\r\n      \"make_targets\": {\r\n        \"darwin\": [\r\n          \"dmg\"\r\n        ]\r\n      },\r\n      \"electronPackagerConfig\": {\r\n        \"packageManager\": \"npm\",\r\n        \"icon\": \"./src/assets/imgs/icon-1024.png\"\r\n      },\r\n      \"github_repository\": {\r\n        \"owner\": \"positlabs\",\r\n        \"name\": \"gif-goat\"\r\n      }\r\n    }\r\n  }\r\n```\r\n\r\n**Please provide either a failing minimal testcase (with a link to the code) or detailed steps to\r\nreproduce your problem. Using `electron-forge init` is a good starting point, if that is not the\r\nsource of your problem.**\r\n\r\nhttps://github.com/positlabs/gif-goat\r\n"},"comment":{"url":"https://api.github.com/repos/electron-userland/electron-forge/issues/comments/386368096","html_url":"https://github.com/electron-userland/electron-forge/issues/493#issuecomment-386368096","issue_url":"https://api.github.com/repos/electron-userland/electron-forge/issues/493","id":386368096,"user":{"login":"benjtinsley","id":3211091,"avatar_url":"https://avatars2.githubusercontent.com/u/3211091?v=4","gravatar_id":"","url":"https://api.github.com/users/benjtinsley","html_url":"https://github.com/benjtinsley","followers_url":"https://api.github.com/users/benjtinsley/followers","following_url":"https://api.github.com/users/benjtinsley/following{/other_user}","gists_url":"https://api.github.com/users/benjtinsley/gists{/gist_id}","starred_url":"https://api.github.com/users/benjtinsley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjtinsley/subscriptions","organizations_url":"https://api.github.com/users/benjtinsley/orgs","repos_url":"https://api.github.com/users/benjtinsley/repos","events_url":"https://api.github.com/users/benjtinsley/events{/privacy}","received_events_url":"https://api.github.com/users/benjtinsley/received_events","type":"User","site_admin":false},"created_at":"2018-05-03T17:11:28Z","updated_at":"2018-05-03T17:11:28Z","author_association":"NONE","body":"@MarshallOfSound thanks for the suggestion, unfortunately that does not fix. "}}
{"actor":{"display_login":"benjtinsley"}}