electron-builder: Error: Redirect was cancelled

electron-builder@21.2.0

electron-updater@4.2.0

target=mac

Having problems getting my autoUpdate to work. Note that I’m pointing at a github repository that is different than the one in the .git/config.

stdout: 20:53:04.849 › Checking for update
stdout: 20:53:04.986 › Current microphone access status: granted
stdout: 20:53:05.027 › Current camera access status: granted
20:53:05.028 › true true
stdout: 20:53:07.240 › Found version 0.0.10 (url: app-0.0.10-mac.zip, app-0.0.10.dmg)
stdout: update avail, downloading
stdout: 20:53:07.241 › Downloading update from app-0.0.10-mac.zip, app-0.0.10.dmg
stderr: 20:53:07.243 › updaterCacheDirName is not specified in app-update.yml Was app build using at least electron-builder 20.34.0?
stderr: (electron) 'getName function' is deprecated and will be removed. Please use 'name property' instead.
stdout: 20:53:07.246 › updater cache dir: /Users/xxx/Library/Application Support/Caches/app
stdout: 20:53:07.251 › No cached update info available
stderr: 20:53:07.542 › Error: Error: Redirect was cancelled
    at SimpleURLLoaderWrapper.<anonymous> (electron/js2c/browser_init.js:2558:23)
    at SimpleURLLoaderWrapper.emit (events.js:203:13)
stdout: Error: Redirect was cancelled
    at SimpleURLLoaderWrapper.<anonymous> (electron/js2c/browser_init.js:2558:23)
    at SimpleURLLoaderWrapper.emit (events.js:203:13)

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 6
  • Comments: 31 (3 by maintainers)

Most upvoted comments

@nornagon @MarshallOfSound @codebytere @ckerr this is the same issue as electron/electron#21566. It’s a regression in Electron 7.1.3 in how aborted redirect requests are handled that broke updates for all apps using electron-updater.

Is there a fix for this? I’m dead in the water and can’t push releases. This should not be closed.

Electron v7.1.8 should have the fix to this issue.

See electron/electron#21566 for details. The regression was introduced in 7.1.3 so downgrading to 7.1.2 should work.

Was previously electron@7.x.x and fixed by downgrading to electron@6.x.x.