megahertz / electron-simple-updater

Simple way to enable update for the electron application
MIT License
368 stars 75 forks source link

Update check failed. The server sent an invalid JSON response #22

Closed gelove closed 6 years ago

gelove commented 7 years ago

log: [warn] Error: Update check failed. The server sent an invalid JSON response. Try again later.

https://lionsec.b0.upaiyun.com/desktop/updates.json { "darwin-x64-prod": { "readme": "Second Release", "update": "https://lionsec.b0.upaiyun.com/desktop/darwin-x64-prod-v1.0.0/release.json", "version": "1.0.0" } }

What should I do? Thanks a lot for any help!

megahertz commented 7 years ago

Sorry, I don't know what can be wrong. Squirrel.Mac throws this error, but your json files are fine. Maybe there are some network/proxy/SSL problems?

I can try to simulate this problem in a few days if nothing helps.

gelove commented 7 years ago

Thanks! I change the folder name, it works! but I don't know why https://lionsec.b0.upaiyun.com/desktop/mac2017050301/release.json"

megahertz commented 7 years ago

I assume that something wrong with a server. Now I see DNS error.

megahertz commented 6 years ago

Feel free to reopen this issue if your problem is not solved.

t3chguy commented 1 year ago

For others happening upon this issue, the same error can occur if the url sent back contains spaces - if you URL encode them with %20 it is much happier