autoUpdater spontaneously fails


The app is signed, and updates are being served through an https update-release server

The autoUpdater emits the checking for update error and simply fails after that with the error message Update check failed.

The server shows the app pinging it for the update, and gives back a 200 response with the following json:

  "url": "/download/version/0.0.3/osx_64?filetype=zip",
  "name": "0.0.3",
  "notes": "",
  "pub_date": "2016-06-30T23:30:51.000Z"

By monitoring my web-traffic I know the first request gets made by the electron app, but it never seems to do anything with the response url. I’ve also tried tweaking the response to this

  "url": "",
  "name": "0.0.3",
  "notes": "",
  "pub_date": "2016-06-30T23:30:51.000Z"

Here’s some console output:

Update check failed
{ [Error: Update check failed]
  preventDefault: [Function: preventDefault],
   EventEmitter {
     setFeedURL: [Function: setFeedURL],
     checkForUpdates: [Function: checkForUpdates],
     quitAndInstall: [Function: quitAndInstall],
      { error: [Function],
        'checking-for-update': [Function],
        'update-available': [Function],
        'update-not-available': [Function],
        'update-downloaded': [Function] },
     _eventsCount: 5 } }

Previously I was running this on an http local host, but switched over to https as I thought it might fix this. Any thoughts?
EDIT: I answered my own question, see update-server response above. The tricky thing is that the autoupdater baked into electron does not throw any specific type of error or error message. Instead of something like “invalid url”, you’ll just get “Update check failed”.


@arcman77, what was in your zip file? I am also trying to implement the autoUpdater but I am not sure what i need to serve to autoUpdater? is it asar file or dmg file?