electron-updater latest.yml added to my generic server url
See original GitHub issue- electron-builder Version: 22.6.0
- Electron Version: 8.2.5
- Electron Type (current, beta, nightly): current
- electron-updater Version: 4.3.1
- Target:
Linux
andWindows
I’m using electron-updater
when I try autoUpdater.setFeedURL(http://localhost:3000/update/${process.platform}/${app.getVersion()});
. when I tried to make a request to my hazel custom update server as response it throws this exception:
Error: Error: Cannot find channel "latest.yml" update info: HttpError: 404 Not Found
"method: GET url: http://localhost:3000/update/win32/1.5.2/latest.yml?noCache=1e9l4bis0\n\nPlease double check that your authentication token is correct. Due to security reasons actual status maybe not reported, but 404.\n"
Headers: {
"content-security-policy": "default-src 'self'",
"x-content-type-options": "nosniff",
"content-type": "text/html; charset=utf-8",
"content-length": "168",
"date": "Sun, 31 May 2020 10:27:39 GMT",
"connection": "keep-alive"
}
at createHttpError (\node_modules\electron-updater\node_modules\builder-util-runtime\out\httpExecutor.js:84:10)
at ElectronHttpExecutor.handleResponse (\node_modules\electron-updater\node_modules\builder-util-runtime\out\httpExecutor.js:169:14)
at ClientRequest.<anonymous> (\node_modules\electron-updater\node_modules\builder-util-runtime\out\httpExecutor.js:134:16)
at ClientRequest.emit (events.js:210:5)
at SimpleURLLoaderWrapper.<anonymous> (electron/js2c/browser_init.js:2510:12)
at SimpleURLLoaderWrapper.emit (events.js:210:5)
at newError (\node_modules\electron-updater\node_modules\builder-util-runtime\out\index.js:212:17)
at GenericProvider.getLatestVersion (\node_modules\electron-updater\out\providers\GenericProvider.js:60:52)
So I just need to remove the /latest.yml?noCache=1e9l4bis0
from the URL and everything should be fine.
Does someone know how to do this ?
Issue Analytics
- State:
- Created 3 years ago
- Comments:7
Top Results From Across the Web
electron-updater latest.yml added to my generic server url ...
Coming soon: A brand new website interface for an even better experience!
Read more >Electron auto updater setup with own server (generic provider)
I was able to set up an auto update configuration using a generic publish option following the docs, having never done it before....
Read more >Auto Update - electron-builder
File Generated and Uploaded in Addition latest. yml (or latest-mac. yml for macOS, or latest-linux. yml for Linux) will be generated and uploaded...
Read more >electron auto updater without code signing - You.com | The AI ...
1. Enable logging · 2. Don't call autoUpdater.setFeedURL() · 3. Also upload the .blockmap files to your server · 4. Add a trailing...
Read more >Today I Learned: Electron Tips - Julian Burr
The auto updater will do the following in the background: fetch latest-*.yml from the url specified in the config; if the version on...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I added a route to my custom server instead. Election updater needs latest.yml to check if the update needs to take place. So thae file should be available from the generic server.
@aniketbiprojit Can you send here what exacly you change in hazel ?