question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fails to parse JSON

See original GitHub issue
  • Version: electron-builder (19.17.0), electron-publisher-s3 (19.17.0)

  • Target: macOS (via CircleCI, Appveyor and TravisCI)

Error: Cannot cleanup: 

Error #1 --------------------------------------------------------------------------------
SyntaxError: Unexpected token u in JSON at position 0
SyntaxError: Unexpected token u in JSON at position 0
    at Object.parse (native)
    at httpExecutor.request.then.it (/Users/distiller/voltra/node_modules/electron-publish/src/gitHubPublisher.ts:207:24)
    at tryCatcher (/Users/distiller/voltra/node_modules/bluebird-lst/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/Users/distiller/voltra/node_modules/bluebird-lst/node_modules/bluebird/js/release/promise.js:512:31)
    at Promise._settlePromise (/Users/distiller/voltra/node_modules/bluebird-lst/node_modules/bluebird/js/release/promise.js:569:18)
    at Promise._settlePromise0 (/Users/distiller/voltra/node_modules/bluebird-lst/node_modules/bluebird/js/release/promise.js:614:10)
    at Promise._settlePromises (/Users/distiller/voltra/node_modules/bluebird-lst/node_modules/bluebird/js/release/promise.js:693:18)
    at Async._drainQueue (/Users/distiller/voltra/node_modules/bluebird-lst/node_modules/bluebird/js/release/async.js:133:16)
    at Async._drainQueues (/Users/distiller/voltra/node_modules/bluebird-lst/node_modules/bluebird/js/release/async.js:143:10)
    at Immediate.Async.drainQueues (/Users/distiller/voltra/node_modules/bluebird-lst/node_modules/bluebird/js/release/async.js:17:14)
From previous event:
    at GitHubPublisher.githubRequest (/Users/distiller/voltra/node_modules/electron-publish/src/gitHubPublisher.ts:207:8)
    at /Users/distiller/voltra/node_modules/electron-publish/src/gitHubPublisher.ts:133:28
    at next (native)
    at runCallback (timers.js:637:20)
    at tryOnImmediate (timers.js:610:5)
    at processImmediate [as _immediateCallback] (timers.js:582:5)
From previous event:
    at GitHubPublisher.doUpload (/Users/distiller/voltra/node_modules/electron-publish/out/gitHubPublisher.js:169:11)
    at /Users/distiller/voltra/node_modules/electron-publish/src/publisher.ts:74:16
    at next (native)
    at /Users/distiller/voltra/node_modules/graceful-fs/polyfills.js:287:18
    at FSReqWrap.oncomplete (fs.js:123:15)
From previous event:
    at GitHubPublisher.upload (/Users/distiller/voltra/node_modules/electron-publish/out/publisher.js:91:11)
    at /Users/distiller/voltra/node_modules/electron-builder/src/publish/PublishManager.ts:148:46
From previous event:
    at PublishManager.artifactCreated (/Users/distiller/voltra/node_modules/electron-builder/out/publish/PublishManager.js:473:11)
    at EventEmitter.PublishManager.packager.artifactCreated.event (/Users/distiller/voltra/node_modules/electron-builder/src/publish/PublishManager.ts:111:69)
    at emitOne (events.js:101:20)
    at EventEmitter.emit (events.js:188:7)
    at Packager.dispatchArtifactCreated (/Users/distiller/voltra/node_modules/electron-builder/src/packager.ts:117:23)
    at MacPackager.dispatchArtifactCreated (/Users/distiller/voltra/node_modules/electron-builder/src/platformPackager.ts:92:15)
    at /Users/distiller/voltra/node_modules/electron-builder/src/targets/ArchiveTarget.ts:30:14
    at next (native)
From previous event:
    at ArchiveTarget.build (/Users/distiller/voltra/node_modules/electron-builder/out/targets/ArchiveTarget.js:60:11)
    at taskManager.addTask.default.map.it (/Users/distiller/voltra/node_modules/electron-builder/src/platformPackager.ts:105:85)
From previous event:
    at MacPackager.packageInDistributableFormat (/Users/distiller/voltra/node_modules/electron-builder/src/platformPackager.ts:105:41)
    at /Users/distiller/voltra/node_modules/electron-builder/src/macPackager.ts:94:26
From previous event:
    at /Users/distiller/voltra/node_modules/electron-builder/src/macPackager.ts:94:10
    at next (native)
From previous event:
    at MacPackager.pack (/Users/distiller/voltra/node_modules/electron-builder/out/macPackager.js:190:11)
    at /Users/distiller/voltra/node_modules/electron-builder/src/packager.ts:244:24
From previous event:
    at Packager.doBuild (/Users/distiller/voltra/node_modules/electron-builder/out/packager.js:317:11)
    at /Users/distiller/voltra/node_modules/electron-builder/src/packager.ts:175:52
    at next (native)
    at runCallback (timers.js:637:20)
    at tryOnImmediate (timers.js:610:5)
    at processImmediate [as _immediateCallback] (timers.js:582:5)
From previous event:
    at Packager.build (/Users/distiller/voltra/node_modules/electron-builder/out/packager.js:236:11)
    at /Users/distiller/voltra/node_modules/electron-builder/src/builder.ts:266:40
    at next (native)
From previous event:
    at build (/Users/distiller/voltra/node_modules/electron-builder/out/builder.js:69:21)
    at Object.args [as handler] (/Users/distiller/voltra/node_modules/electron-builder/src/cli/cli.ts:46:4)
    at Object.self.runCommand (/Users/distiller/voltra/node_modules/electron-builder/node_modules/yargs/lib/command.js:233:22)
    at Object.Yargs.self._parseArgs (/Users/distiller/voltra/node_modules/electron-builder/node_modules/yargs/yargs.js:1018:24)
    at Object.get [as argv] (/Users/distiller/voltra/node_modules/electron-builder/node_modules/yargs/yargs.js:927:19)
    at Object.<anonymous> (/Users/distiller/voltra/node_modules/electron-builder/src/cli/cli.ts:41:15)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:394:7)
    at startup (bootstrap_node.js:149:9)
    at bootstrap_node.js:509:3

Error #2 --------------------------------------------------------------------------------
SyntaxError: Unexpected token u in JSON at position 0
SyntaxError: Unexpected token u in JSON at position 0
    at Object.parse (native)
    at httpExecutor.request.then.it (/Users/distiller/voltra/node_modules/electron-publish/src/gitHubPublisher.ts:207:24)
    at tryCatcher (/Users/distiller/voltra/node_modules/bluebird-lst/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/Users/distiller/voltra/node_modules/bluebird-lst/node_modules/bluebird/js/release/promise.js:512:31)
    at Promise._settlePromise (/Users/distiller/voltra/node_modules/bluebird-lst/node_modules/bluebird/js/release/promise.js:569:18)
    at Promise._settlePromise0 (/Users/distiller/voltra/node_modules/bluebird-lst/node_modules/bluebird/js/release/promise.js:614:10)
    at Promise._settlePromises (/Users/distiller/voltra/node_modules/bluebird-lst/node_modules/bluebird/js/release/promise.js:693:18)
    at Async._drainQueue (/Users/distiller/voltra/node_modules/bluebird-lst/node_modules/bluebird/js/release/async.js:133:16)
    at Async._drainQueues (/Users/distiller/voltra/node_modules/bluebird-lst/node_modules/bluebird/js/release/async.js:143:10)
    at Immediate.Async.drainQueues (/Users/distiller/voltra/node_modules/bluebird-lst/node_modules/bluebird/js/release/async.js:17:14)
From previous event:
    at GitHubPublisher.githubRequest (/Users/distiller/voltra/node_modules/electron-publish/src/gitHubPublisher.ts:207:8)
    at /Users/distiller/voltra/node_modules/electron-publish/src/gitHubPublisher.ts:133:28
    at next (native)
    at runCallback (timers.js:637:20)
    at tryOnImmediate (timers.js:610:5)
    at processImmediate [as _immediateCallback] (timers.js:582:5)
From previous event:
    at GitHubPublisher.doUpload (/Users/distiller/voltra/node_modules/electron-publish/out/gitHubPublisher.js:169:11)
    at /Users/distiller/voltra/node_modules/electron-publish/src/publisher.ts:74:16
    at next (native)
    at /Users/distiller/voltra/node_modules/graceful-fs/polyfills.js:287:18
From previous event:
    at GitHubPublisher.upload (/Users/distiller/voltra/node_modules/electron-publish/out/publisher.js:91:11)
    at /Users/distiller/voltra/node_modules/electron-builder/src/publish/PublishManager.ts:148:46
    at next (native)
From previous event:
    at PublishManager.artifactCreated (/Users/distiller/voltra/node_modules/electron-builder/out/publish/PublishManager.js:473:11)
    at EventEmitter.PublishManager.packager.artifactCreated.event (/Users/distiller/voltra/node_modules/electron-builder/src/publish/PublishManager.ts:111:69)
    at emitOne (events.js:101:20)
    at EventEmitter.emit (events.js:188:7)
    at Packager.dispatchArtifactCreated (/Users/distiller/voltra/node_modules/electron-builder/src/packager.ts:117:23)
    at /Users/distiller/voltra/node_modules/electron-builder/src/publish/PublishManager.ts:260:23
    at next (native)
    at /Users/distiller/voltra/node_modules/graceful-fs/graceful-fs.js:99:16
    at /Users/distiller/voltra/node_modules/graceful-fs/graceful-fs.js:43:10
    at FSReqWrap.oncomplete (fs.js:123:15)
From previous event:
    at writeUpdateInfo (/Users/distiller/voltra/node_modules/electron-builder/out/publish/PublishManager.js:131:22)
    at /Users/distiller/voltra/node_modules/electron-builder/src/publish/PublishManager.ts:156:34
From previous event:
    at PublishManager.artifactCreated (/Users/distiller/voltra/node_modules/electron-builder/out/publish/PublishManager.js:473:11)
    at EventEmitter.PublishManager.packager.artifactCreated.event (/Users/distiller/voltra/node_modules/electron-builder/src/publish/PublishManager.ts:111:69)
    at emitOne (events.js:101:20)
    at EventEmitter.emit (events.js:188:7)
    at Packager.dispatchArtifactCreated (/Users/distiller/voltra/node_modules/electron-builder/src/packager.ts:117:23)
    at MacPackager.dispatchArtifactCreated (/Users/distiller/voltra/node_modules/electron-builder/src/platformPackager.ts:92:15)
    at /Users/distiller/voltra/node_modules/electron-builder/src/targets/ArchiveTarget.ts:30:14
    at next (native)
From previous event:
    at ArchiveTarget.build (/Users/distiller/voltra/node_modules/electron-builder/out/targets/ArchiveTarget.js:60:11)
    at taskManager.addTask.default.map.it (/Users/distiller/voltra/node_modules/electron-builder/src/platformPackager.ts:105:85)
From previous event:
    at MacPackager.packageInDistributableFormat (/Users/distiller/voltra/node_modules/electron-builder/src/platformPackager.ts:105:41)
    at /Users/distiller/voltra/node_modules/electron-builder/src/macPackager.ts:94:26
From previous event:
    at /Users/distiller/voltra/node_modules/electron-builder/src/macPackager.ts:94:10
    at next (native)
From previous event:
    at MacPackager.pack (/Users/distiller/voltra/node_modules/electron-builder/out/macPackager.js:190:11)
    at /Users/distiller/voltra/node_modules/electron-builder/src/packager.ts:244:24
From previous event:
    at Packager.doBuild (/Users/distiller/voltra/node_modules/electron-builder/out/packager.js:317:11)
    at /Users/distiller/voltra/node_modules/electron-builder/src/packager.ts:175:52
    at next (native)
    at runCallback (timers.js:637:20)
    at tryOnImmediate (timers.js:610:5)
    at processImmediate [as _immediateCallback] (timers.js:582:5)
From previous event:
    at Packager.build (/Users/distiller/voltra/node_modules/electron-builder/out/packager.js:236:11)
    at /Users/distiller/voltra/node_modules/electron-builder/src/builder.ts:266:40
    at next (native)
From previous event:
    at build (/Users/distiller/voltra/node_modules/electron-builder/out/builder.js:69:21)
    at Object.args [as handler] (/Users/distiller/voltra/node_modules/electron-builder/src/cli/cli.ts:46:4)
    at Object.self.runCommand (/Users/distiller/voltra/node_modules/electron-builder/node_modules/yargs/lib/command.js:233:22)
    at Object.Yargs.self._parseArgs (/Users/distiller/voltra/node_modules/electron-builder/node_modules/yargs/yargs.js:1018:24)
    at Object.get [as argv] (/Users/distiller/voltra/node_modules/electron-builder/node_modules/yargs/yargs.js:927:19)
    at Object.<anonymous> (/Users/distiller/voltra/node_modules/electron-builder/src/cli/cli.ts:41:15)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:394:7)
    at startup (bootstrap_node.js:149:9)
    at bootstrap_node.js:509:3

Error #3 --------------------------------------------------------------------------------
SyntaxError: Unexpected token u in JSON at position 0
SyntaxError: Unexpected token u in JSON at position 0
    at Object.parse (native)
    at httpExecutor.request.then.it (/Users/distiller/voltra/node_modules/electron-publish/src/gitHubPublisher.ts:207:24)
    at tryCatcher (/Users/distiller/voltra/node_modules/bluebird-lst/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/Users/distiller/voltra/node_modules/bluebird-lst/node_modules/bluebird/js/release/promise.js:512:31)
    at Promise._settlePromise (/Users/distiller/voltra/node_modules/bluebird-lst/node_modules/bluebird/js/release/promise.js:569:18)
    at Promise._settlePromise0 (/Users/distiller/voltra/node_modules/bluebird-lst/node_modules/bluebird/js/release/promise.js:614:10)
    at Promise._settlePromises (/Users/distiller/voltra/node_modules/bluebird-lst/node_modules/bluebird/js/release/promise.js:693:18)
    at Async._drainQueue (/Users/distiller/voltra/node_modules/bluebird-lst/node_modules/bluebird/js/release/async.js:133:16)
    at Async._drainQueues (/Users/distiller/voltra/node_modules/bluebird-lst/node_modules/bluebird/js/release/async.js:143:10)
    at Immediate.Async.drainQueues (/Users/distiller/voltra/node_modules/bluebird-lst/node_modules/bluebird/js/release/async.js:17:14)
From previous event:
    at GitHubPublisher.githubRequest (/Users/distiller/voltra/node_modules/electron-publish/src/gitHubPublisher.ts:207:8)
    at /Users/distiller/voltra/node_modules/electron-publish/src/gitHubPublisher.ts:133:28
    at next (native)
    at runCallback (timers.js:637:20)
    at tryOnImmediate (timers.js:610:5)
    at processImmediate [as _immediateCallback] (timers.js:582:5)
From previous event:
    at GitHubPublisher.doUpload (/Users/distiller/voltra/node_modules/electron-publish/out/gitHubPublisher.js:169:11)
    at /Users/distiller/voltra/node_modules/electron-publish/src/publisher.ts:74:16
    at next (native)
    at /Users/distiller/voltra/node_modules/graceful-fs/polyfills.js:287:18
From previous event:
    at GitHubPublisher.upload (/Users/distiller/voltra/node_modules/electron-publish/out/publisher.js:91:11)
    at /Users/distiller/voltra/node_modules/electron-builder/src/publish/PublishManager.ts:148:46
    at next (native)
From previous event:
    at PublishManager.artifactCreated (/Users/distiller/voltra/node_modules/electron-builder/out/publish/PublishManager.js:473:11)
    at EventEmitter.PublishManager.packager.artifactCreated.event (/Users/distiller/voltra/node_modules/electron-builder/src/publish/PublishManager.ts:111:69)
    at emitOne (events.js:101:20)
    at EventEmitter.emit (events.js:188:7)
    at Packager.dispatchArtifactCreated (/Users/distiller/voltra/node_modules/electron-builder/src/packager.ts:117:23)
    at /Users/distiller/voltra/node_modules/electron-builder/src/publish/PublishManager.ts:291:19
    at next (native)
    at /Users/distiller/voltra/node_modules/graceful-fs/graceful-fs.js:99:16
    at /Users/distiller/voltra/node_modules/graceful-fs/graceful-fs.js:43:10
    at FSReqWrap.oncomplete (fs.js:123:15)
From previous event:
    at writeUpdateInfo (/Users/distiller/voltra/node_modules/electron-builder/out/publish/PublishManager.js:131:22)
    at /Users/distiller/voltra/node_modules/electron-builder/src/publish/PublishManager.ts:156:34
From previous event:
    at PublishManager.artifactCreated (/Users/distiller/voltra/node_modules/electron-builder/out/publish/PublishManager.js:473:11)
    at EventEmitter.PublishManager.packager.artifactCreated.event (/Users/distiller/voltra/node_modules/electron-builder/src/publish/PublishManager.ts:111:69)
    at emitOne (events.js:101:20)
    at EventEmitter.emit (events.js:188:7)
    at Packager.dispatchArtifactCreated (/Users/distiller/voltra/node_modules/electron-builder/src/packager.ts:117:23)
    at MacPackager.dispatchArtifactCreated (/Users/distiller/voltra/node_modules/electron-builder/src/platformPackager.ts:92:15)
    at /Users/distiller/voltra/node_modules/electron-builder/src/targets/ArchiveTarget.ts:30:14
    at next (native)
From previous event:
    at ArchiveTarget.build (/Users/distiller/voltra/node_modules/electron-builder/out/targets/ArchiveTarget.js:60:11)
    at taskManager.addTask.default.map.it (/Users/distiller/voltra/node_modules/electron-builder/src/platformPackager.ts:105:85)
From previous event:
    at MacPackager.packageInDistributableFormat (/Users/distiller/voltra/node_modules/electron-builder/src/platformPackager.ts:105:41)
    at /Users/distiller/voltra/node_modules/electron-builder/src/macPackager.ts:94:26
From previous event:
    at /Users/distiller/voltra/node_modules/electron-builder/src/macPackager.ts:94:10
    at next (native)
From previous event:
    at MacPackager.pack (/Users/distiller/voltra/node_modules/electron-builder/out/macPackager.js:190:11)
    at /Users/distiller/voltra/node_modules/electron-builder/src/packager.ts:244:24
From previous event:
    at Packager.doBuild (/Users/distiller/voltra/node_modules/electron-builder/out/packager.js:317:11)
    at /Users/distiller/voltra/node_modules/electron-builder/src/packager.ts:175:52
    at next (native)
    at runCallback (timers.js:637:20)
    at tryOnImmediate (timers.js:610:5)
    at processImmediate [as _immediateCallback] (timers.js:582:5)
From previous event:
    at Packager.build (/Users/distiller/voltra/node_modules/electron-builder/out/packager.js:236:11)
    at /Users/distiller/voltra/node_modules/electron-builder/src/builder.ts:266:40
    at next (native)
From previous event:
    at build (/Users/distiller/voltra/node_modules/electron-builder/out/builder.js:69:21)
    at Object.args [as handler] (/Users/distiller/voltra/node_modules/electron-builder/src/cli/cli.ts:46:4)
    at Object.self.runCommand (/Users/distiller/voltra/node_modules/electron-builder/node_modules/yargs/lib/command.js:233:22)
    at Object.Yargs.self._parseArgs (/Users/distiller/voltra/node_modules/electron-builder/node_modules/yargs/yargs.js:1018:24)
    at Object.get [as argv] (/Users/distiller/voltra/node_modules/electron-builder/node_modules/yargs/yargs.js:927:19)
    at Object.<anonymous> (/Users/distiller/voltra/node_modules/electron-builder/src/cli/cli.ts:41:15)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:394:7)
    at startup (bootstrap_node.js:149:9)
    at bootstrap_node.js:509:3
    at Object.parse (native)
    at httpExecutor.request.then.it (/Users/distiller/voltra/node_modules/electron-publish/src/gitHubPublisher.ts:207:24)
    at GitHubPublisher.githubRequest (/Users/distiller/voltra/node_modules/electron-publish/src/gitHubPublisher.ts:207:8)
    at /Users/distiller/voltra/node_modules/electron-publish/src/gitHubPublisher.ts:133:28
    at next (native)
    at runCallback (timers.js:637:20)
    at tryOnImmediate (timers.js:610:5)
    at processImmediate [as _immediateCallback] (timers.js:582:5)
    at GitHubPublisher.doUpload (/Users/distiller/voltra/node_modules/electron-publish/out/gitHubPublisher.js:169:11)
    at /Users/distiller/voltra/node_modules/electron-publish/src/publisher.ts:74:16
    at next (native)
    at /Users/distiller/voltra/node_modules/graceful-fs/polyfills.js:287:18
    at FSReqWrap.oncomplete (fs.js:123:15)
    at GitHubPublisher.upload (/Users/distiller/voltra/node_modules/electron-publish/out/publisher.js:91:11)
    at /Users/distiller/voltra/node_modules/electron-builder/src/publish/PublishManager.ts:148:46
    at PublishManager.artifactCreated (/Users/distiller/voltra/node_modules/electron-builder/out/publish/PublishManager.js:473:11)
    at EventEmitter.PublishManager.packager.artifactCreated.event (/Users/distiller/voltra/node_modules/electron-builder/src/publish/PublishManager.ts:111:69)
    at emitOne (events.js:101:20)
    at EventEmitter.emit (events.js:188:7)
    at Packager.dispatchArtifactCreated (/Users/distiller/voltra/node_modules/electron-builder/src/packager.ts:117:23)
    at MacPackager.dispatchArtifactCreated (/Users/distiller/voltra/node_modules/electron-builder/src/platformPackager.ts:92:15)
    at /Users/distiller/voltra/node_modules/electron-builder/src/targets/ArchiveTarget.ts:30:14
    at next (native)
    at ArchiveTarget.build (/Users/distiller/voltra/node_modules/electron-builder/out/targets/ArchiveTarget.js:60:11)
    at taskManager.addTask.default.map.it (/Users/distiller/voltra/node_modules/electron-builder/src/platformPackager.ts:105:85)
    at MacPackager.packageInDistributableFormat (/Users/distiller/voltra/node_modules/electron-builder/src/platformPackager.ts:105:41)
    at /Users/distiller/voltra/node_modules/electron-builder/src/macPackager.ts:94:26
    at /Users/distiller/voltra/node_modules/electron-builder/src/macPackager.ts:94:10
    at next (native)
    at MacPackager.pack (/Users/distiller/voltra/node_modules/electron-builder/out/macPackager.js:190:11)
    at /Users/distiller/voltra/node_modules/electron-builder/src/packager.ts:244:24
    at Packager.doBuild (/Users/distiller/voltra/node_modules/electron-builder/out/packager.js:317:11)
    at /Users/distiller/voltra/node_modules/electron-builder/src/packager.ts:175:52
    at next (native)
    at runCallback (timers.js:637:20)
    at tryOnImmediate (timers.js:610:5)
    at processImmediate [as _immediateCallback] (timers.js:582:5)
    at Packager.build (/Users/distiller/voltra/node_modules/electron-builder/out/packager.js:236:11)
    at /Users/distiller/voltra/node_modules/electron-builder/src/builder.ts:266:40
    at next (native)
    at build (/Users/distiller/voltra/node_modules/electron-builder/out/builder.js:69:21)
    at Object.args [as handler] (/Users/distiller/voltra/node_modules/electron-builder/src/cli/cli.ts:46:4)
    at Object.self.runCommand (/Users/distiller/voltra/node_modules/electron-builder/node_modules/yargs/lib/command.js:233:22)
    at Object.Yargs.self._parseArgs (/Users/distiller/voltra/node_modules/electron-builder/node_modules/yargs/yargs.js:1018:24)
    at Object.get [as argv] (/Users/distiller/voltra/node_modules/electron-builder/node_modules/yargs/yargs.js:927:19)
    at Object.<anonymous> (/Users/distiller/voltra/node_modules/electron-builder/src/cli/cli.ts:41:15)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:394:7)
    at startup (bootstrap_node.js:149:9)
    at bootstrap_node.js:509:3
    at Object.parse (native)
    at httpExecutor.request.then.it (/Users/distiller/voltra/node_modules/electron-publish/src/gitHubPublisher.ts:207:24)
    at GitHubPublisher.githubRequest (/Users/distiller/voltra/node_modules/electron-publish/src/gitHubPublisher.ts:207:8)
    at /Users/distiller/voltra/node_modules/electron-publish/src/gitHubPublisher.ts:133:28
    at next (native)
    at runCallback (timers.js:637:20)
    at tryOnImmediate (timers.js:610:5)
    at processImmediate [as _immediateCallback] (timers.js:582:5)
    at GitHubPublisher.doUpload (/Users/distiller/voltra/node_modules/electron-publish/out/gitHubPublisher.js:169:11)
    at /Users/distiller/voltra/node_modules/electron-publish/src/publisher.ts:74:16
    at next (native)
    at /Users/distiller/voltra/node_modules/graceful-fs/polyfills.js:287:18
    at GitHubPublisher.upload (/Users/distiller/voltra/node_modules/electron-publish/out/publisher.js:91:11)
    at /Users/distiller/voltra/node_modules/electron-builder/src/publish/PublishManager.ts:148:46
    at next (native)
    at PublishManager.artifactCreated (/Users/distiller/voltra/node_modules/electron-builder/out/publish/PublishManager.js:473:11)
    at EventEmitter.PublishManager.packager.artifactCreated.event (/Users/distiller/voltra/node_modules/electron-builder/src/publish/PublishManager.ts:111:69)
    at emitOne (events.js:101:20)
    at EventEmitter.emit (events.js:188:7)
    at Packager.dispatchArtifactCreated (/Users/distiller/voltra/node_modules/electron-builder/src/packager.ts:117:23)
    at /Users/distiller/voltra/node_modules/electron-builder/src/publish/PublishManager.ts:260:23
    at next (native)
    at /Users/distiller/voltra/node_modules/graceful-fs/graceful-fs.js:99:16
    at /Users/distiller/voltra/node_modules/graceful-fs/graceful-fs.js:43:10
    at FSReqWrap.oncomplete (fs.js:123:15)
    at writeUpdateInfo (/Users/distiller/voltra/node_modules/electron-builder/out/publish/PublishManager.js:131:22)
    at /Users/distiller/voltra/node_modules/electron-builder/src/publish/PublishManager.ts:156:34
    at PublishManager.artifactCreated (/Users/distiller/voltra/node_modules/electron-builder/out/publish/PublishManager.js:473:11)
    at EventEmitter.PublishManager.packager.artifactCreated.event (/Users/distiller/voltra/node_modules/electron-builder/src/publish/PublishManager.ts:111:69)
    at emitOne (events.js:101:20)
    at EventEmitter.emit (events.js:188:7)
    at Packager.dispatchArtifactCreated (/Users/distiller/voltra/node_modules/electron-builder/src/packager.ts:117:23)
    at MacPackager.dispatchArtifactCreated (/Users/distiller/voltra/node_modules/electron-builder/src/platformPackager.ts:92:15)
    at /Users/distiller/voltra/node_modules/electron-builder/src/targets/ArchiveTarget.ts:30:14
    at next (native)
    at ArchiveTarget.build (/Users/distiller/voltra/node_modules/electron-builder/out/targets/ArchiveTarget.js:60:11)
    at taskManager.addTask.default.map.it (/Users/distiller/voltra/node_modules/electron-builder/src/platformPackager.ts:105:85)
    at MacPackager.packageInDistributableFormat (/Users/distiller/voltra/node_modules/electron-builder/src/platformPackager.ts:105:41)
    at /Users/distiller/voltra/node_modules/electron-builder/src/macPackager.ts:94:26
    at /Users/distiller/voltra/node_modules/electron-builder/src/macPackager.ts:94:10
    at next (native)
    at MacPackager.pack (/Users/distiller/voltra/node_modules/electron-builder/out/macPackager.js:190:11)
    at /Users/distiller/voltra/node_modules/electron-builder/src/packager.ts:244:24
    at Packager.doBuild (/Users/distiller/voltra/node_modules/electron-builder/out/packager.js:317:11)
    at /Users/distiller/voltra/node_modules/electron-builder/src/packager.ts:175:52
    at next (native)
    at runCallback (timers.js:637:20)
    at tryOnImmediate (timers.js:610:5)
    at processImmediate [as _immediateCallback] (timers.js:582:5)
    at Packager.build (/Users/distiller/voltra/node_modules/electron-builder/out/packager.js:236:11)
    at /Users/distiller/voltra/node_modules/electron-builder/src/builder.ts:266:40
    at next (native)
    at build (/Users/distiller/voltra/node_modules/electron-builder/out/builder.js:69:21)
    at Object.args [as handler] (/Users/distiller/voltra/node_modules/electron-builder/src/cli/cli.ts:46:4)
    at Object.self.runCommand (/Users/distiller/voltra/node_modules/electron-builder/node_modules/yargs/lib/command.js:233:22)
    at Object.Yargs.self._parseArgs (/Users/distiller/voltra/node_modules/electron-builder/node_modules/yargs/yargs.js:1018:24)
    at Object.get [as argv] (/Users/distiller/voltra/node_modules/electron-builder/node_modules/yargs/yargs.js:927:19)
    at Object.<anonymous> (/Users/distiller/voltra/node_modules/electron-builder/src/cli/cli.ts:41:15)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:394:7)
    at startup (bootstrap_node.js:149:9)
    at bootstrap_node.js:509:3
    at Object.parse (native)
    at httpExecutor.request.then.it (/Users/distiller/voltra/node_modules/electron-publish/src/gitHubPublisher.ts:207:24)
    at GitHubPublisher.githubRequest (/Users/distiller/voltra/node_modules/electron-publish/src/gitHubPublisher.ts:207:8)
    at /Users/distiller/voltra/node_modules/electron-publish/src/gitHubPublisher.ts:133:28
    at next (native)
    at runCallback (timers.js:637:20)
    at tryOnImmediate (timers.js:610:5)
    at processImmediate [as _immediateCallback] (timers.js:582:5)
    at GitHubPublisher.doUpload (/Users/distiller/voltra/node_modules/electron-publish/out/gitHubPublisher.js:169:11)
    at /Users/distiller/voltra/node_modules/electron-publish/src/publisher.ts:74:16
    at next (native)
    at /Users/distiller/voltra/node_modules/graceful-fs/polyfills.js:287:18
    at GitHubPublisher.upload (/Users/distiller/voltra/node_modules/electron-publish/out/publisher.js:91:11)
    at /Users/distiller/voltra/node_modules/electron-builder/src/publish/PublishManager.ts:148:46
    at next (native)
    at PublishManager.artifactCreated (/Users/distiller/voltra/node_modules/electron-builder/out/publish/PublishManager.js:473:11)
    at EventEmitter.PublishManager.packager.artifactCreated.event (/Users/distiller/voltra/node_modules/electron-builder/src/publish/PublishManager.ts:111:69)
    at emitOne (events.js:101:20)
    at EventEmitter.emit (events.js:188:7)
    at Packager.dispatchArtifactCreated (/Users/distiller/voltra/node_modules/electron-builder/src/packager.ts:117:23)
    at /Users/distiller/voltra/node_modules/electron-builder/src/publish/PublishManager.ts:291:19
    at next (native)
    at /Users/distiller/voltra/node_modules/graceful-fs/graceful-fs.js:99:16
    at /Users/distiller/voltra/node_modules/graceful-fs/graceful-fs.js:43:10
    at FSReqWrap.oncomplete (fs.js:123:15)
    at writeUpdateInfo (/Users/distiller/voltra/node_modules/electron-builder/out/publish/PublishManager.js:131:22)
    at /Users/distiller/voltra/node_modules/electron-builder/src/publish/PublishManager.ts:156:34
    at PublishManager.artifactCreated (/Users/distiller/voltra/node_modules/electron-builder/out/publish/PublishManager.js:473:11)
    at EventEmitter.PublishManager.packager.artifactCreated.event (/Users/distiller/voltra/node_modules/electron-builder/src/publish/PublishManager.ts:111:69)
    at emitOne (events.js:101:20)
    at EventEmitter.emit (events.js:188:7)
    at Packager.dispatchArtifactCreated (/Users/distiller/voltra/node_modules/electron-builder/src/packager.ts:117:23)
    at MacPackager.dispatchArtifactCreated (/Users/distiller/voltra/node_modules/electron-builder/src/platformPackager.ts:92:15)
    at /Users/distiller/voltra/node_modules/electron-builder/src/targets/ArchiveTarget.ts:30:14
    at next (native)
    at ArchiveTarget.build (/Users/distiller/voltra/node_modules/electron-builder/out/targets/ArchiveTarget.js:60:11)
    at taskManager.addTask.default.map.it (/Users/distiller/voltra/node_modules/electron-builder/src/platformPackager.ts:105:85)
    at MacPackager.packageInDistributableFormat (/Users/distiller/voltra/node_modules/electron-builder/src/platformPackager.ts:105:41)
    at /Users/distiller/voltra/node_modules/electron-builder/src/macPackager.ts:94:26
    at /Users/distiller/voltra/node_modules/electron-builder/src/macPackager.ts:94:10
    at next (native)
    at MacPackager.pack (/Users/distiller/voltra/node_modules/electron-builder/out/macPackager.js:190:11)
    at /Users/distiller/voltra/node_modules/electron-builder/src/packager.ts:244:24
    at Packager.doBuild (/Users/distiller/voltra/node_modules/electron-builder/out/packager.js:317:11)
    at /Users/distiller/voltra/node_modules/electron-builder/src/packager.ts:175:52
    at next (native)
    at runCallback (timers.js:637:20)
    at tryOnImmediate (timers.js:610:5)
    at processImmediate [as _immediateCallback] (timers.js:582:5)
    at Packager.build (/Users/distiller/voltra/node_modules/electron-builder/out/packager.js:236:11)
    at /Users/distiller/voltra/node_modules/electron-builder/src/builder.ts:266:40
    at next (native)
    at build (/Users/distiller/voltra/node_modules/electron-builder/out/builder.js:69:21)
    at Object.args [as handler] (/Users/distiller/voltra/node_modules/electron-builder/src/cli/cli.ts:46:4)
    at Object.self.runCommand (/Users/distiller/voltra/node_modules/electron-builder/node_modules/yargs/lib/command.js:233:22)
    at Object.Yargs.self._parseArgs (/Users/distiller/voltra/node_modules/electron-builder/node_modules/yargs/yargs.js:1018:24)
    at Object.get [as argv] (/Users/distiller/voltra/node_modules/electron-builder/node_modules/yargs/yargs.js:927:19)
    at Object.<anonymous> (/Users/distiller/voltra/node_modules/electron-builder/src/cli/cli.ts:41:15)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:394:7)
    at startup (bootstrap_node.js:149:9)
    at bootstrap_node.js:509:3
    at NestedError (/Users/distiller/voltra/node_modules/electron-builder-util/src/promise.ts:42:5)
    at throwError (/Users/distiller/voltra/node_modules/electron-builder/src/util/asyncTaskManager.ts:92:11)
    at checkErrors (/Users/distiller/voltra/node_modules/electron-builder/src/util/asyncTaskManager.ts:55:9)
    at /Users/distiller/voltra/node_modules/electron-builder/src/util/asyncTaskManager.ts:69:7
From previous event:
    at AsyncTaskManager.awaitTasks (/Users/distiller/voltra/node_modules/electron-builder/out/util/asyncTaskManager.js:104:11)
    at PublishManager.awaitTasks (/Users/distiller/voltra/node_modules/electron-builder/src/publish/PublishManager.ts:178:29)
    at /Users/distiller/voltra/node_modules/electron-builder/src/builder.ts:272:29
    at /Users/distiller/voltra/node_modules/electron-builder-util/src/promise.ts:26:11
    at next (native)
    at runCallback (timers.js:637:20)
    at tryOnImmediate (timers.js:610:5)
    at processImmediate [as _immediateCallback] (timers.js:582:5)
From previous event:
    at executeFinally (/Users/distiller/voltra/node_modules/electron-builder-util/out/promise.js:37:21)
    at /Users/distiller/voltra/node_modules/electron-builder/src/builder.ts:266:10
    at next (native)
From previous event:
    at build (/Users/distiller/voltra/node_modules/electron-builder/out/builder.js:69:21)
    at Object.args [as handler] (/Users/distiller/voltra/node_modules/electron-builder/src/cli/cli.ts:46:4)
    at Object.self.runCommand (/Users/distiller/voltra/node_modules/electron-builder/node_modules/yargs/lib/command.js:233:22)
    at Object.Yargs.self._parseArgs (/Users/distiller/voltra/node_modules/electron-builder/node_modules/yargs/yargs.js:1018:24)
    at Object.get [as argv] (/Users/distiller/voltra/node_modules/electron-builder/node_modules/yargs/yargs.js:927:19)
    at Object.<anonymous> (/Users/distiller/voltra/node_modules/electron-builder/src/cli/cli.ts:41:15)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:394:7)
    at startup (bootstrap_node.js:149:9)
    at bootstrap_node.js:509:3

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:11
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
heapwolfcommented, Jul 31, 2017

@develar You are awesome! Thanks for all your hard work on this project! 💯 ❤️ ❤️

1reaction
lucat1commented, Jul 31, 2017

Yes i’m blind apparently😫

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm "failed to parse json" - Stack Overflow
Try to open your txt editor and select "plain text" for the package.json then re-save.
Read more >
SyntaxError: JSON.parse: bad parsing - JavaScript | MDN
JSON.parse() parses a string as JSON. This string has to be valid JSON and will throw this error if incorrect syntax was encountered....
Read more >
How to handle invalid JSON parse error properly.
The most common way to handle JSON parse error is using try-catch block. If the JSON string is valid, it will return a...
Read more >
SyntaxError: JSON.parse: bad parsing Breaking Your Code ...
In JavaScript, when passing JSON to the JSON.parse() method, the method expects properly formatted JSON as the first argument. When it detects ...
Read more >
Why parsing fails? | ArduinoJson 5
Why parsing fails? · The input is not a valid JSON · The StaticJsonBuffer is too small · The StaticJsonBuffer is too big...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found