I've included auto-updater in my project, but although I've been getting valid
200 response (which is fine for Squirrel),
error event was dispatched in my app. After some time, I've found out that the problem is in naming of my application.
package.json, I've set product name to be 2 words (i.e. "Hello World"). I'm using
electron-builder which will create zip file for distributing update, but it will be named something like: "Hello World-0.1.0-mac.zip".
By now, you're guessing what the problem will be - empty space in file name. Although response received in auto-updater is valid JSON and url is also valid (I can open it in browser just fine), Squirrel is throwing an error: "The server sent an invalid JSON response. Try again later."
I just wanted to point to possible problem in app name using
productName. You can handle this on server side of course and rename file after it's been built.