question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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 and Windows

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:closed
  • Created 3 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
aniketbiprojitcommented, Sep 25, 2020

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.

0reactions
GorlikItsMecommented, Jul 30, 2021

@aniketbiprojit Can you send here what exacly you change in hazel ?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found