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.

Im using electron-updater; its throwing: Cannot find channel "latest.yml" update info: HttpError: 404 config: const { autoUpdater } = require("electron-updater") const server = "https://hazel.mineinfo80.now.sh/"; const feed = "${server}/update/${process.platform}/${app.getVersion()}";

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:12

github_iconTop GitHub Comments

26reactions
dr3adxcommented, Feb 26, 2020

CAN ANYONE FUCKING ANSWER FROM THE FUCKING CREATORS U PIECES OF TRASH, EVERYONE HAS SAME ERROR, AND STUPID DUMB DOCUMENTATION EXPLAINS NOTHING

4reactions
insd47commented, Aug 27, 2021

I changed some codes to make electron-updater work well. these codes will add /files route on your server, serving each release file directly.

./lib/routes.js

...
  // aded new lines below exports.releases
  exports.files = async (req, res) => {
    const { filename } = req.params;
    const latest = await loadCache();

    if (!latest.files[filename]) {
      send(res, 404, `can't load ${filename}`)
      return
    }

    if (shouldProxyPrivateDownload) {
      proxyPrivateDownload(latest.files[filename], req, res);
      return
    }

    res.writeHead(302, {
      Location: latest.files[filename].url
    })
    res.end()
  }
...

./lib/cache.js

...
    // Clear list of download links
    this.latest.platforms = {}
    this.latest.files = {}

    for (const asset of release.assets) {
      const { name, browser_download_url, url, content_type, size } = asset

      // added new lines
      this.latest.files[name] = {
        name,
        api_url: url,
        url: browser_download_url,
        content_type,
        size: Math.round(size / 1000000 * 10) / 10
      }

      if (name === 'RELEASES') {
...

./lib/index.js

...
  // Define a route for every relevant path
  ...
  router.get('/files/:filename', routes.files);
...

and then I removed autoUpdater.setFeedURL({ url }) and added dev-app-update.yml at ./

provider: generic
url: <hazel-server-url>/files
Read more comments on GitHub >

github_iconTop Results From Across the Web

Generic Repo, Error: Cannot find channel "latest.yml" update
I am trying to use generic http server for update. When i use npm http-server package for update, it works well but when...
Read more >
Problem with app update yml files is not generated in electron?
In my case, the issue was that I had some config in the package. json and some more in a separate json file,...
Read more >
An error occurred while fetching the YAML file azure-pipelines ...
According to your description and the error message, the yml file is not found in selected repo of GiHub when you edit a...
Read more >
Error: Cannot find channel “latest.yml“ update info: HttpError ...
Error : Error: Cannot find channel "latest.yml" update info: HttpError: 404 Not Found的解决方法.
Read more >
Problem with app update yml files is not generated in electron?
I have a problem with the auto-update of electron app, ... build it will do everything correct with the latest.yml file generating but...
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