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.

Error checking for updates: 404

See original GitHub issue

Electron Updater: v2.8.5 Electron Builder: v19.20.0

Anytime I try to update it goes to a folder that I do not want and ends up being a 404 error because it does not exist.

Right now in my package.json I have publish that looks like this:

"publish": [
        {
          "provider": "github",
          "owner": "ahadcove",
          "repo": "lumia-twitch",
          "private": true
        }
      ]

and since this wasn’t working, I set the feed url in autoUpdater:

  autoUpdater.setFeedUrl = "https://github.com/AhadCove/lumia-twitch";

This is private, so I also have my GH_TOKEN inside my ENV and made sure the GH_TOKEN has full access to repo.

Here is the error I am getting:

Cannot check for updates: HttpError: 404 Not Found
"method: undefined url: https://github.com/ahadcove/lumia-twitch/releases.atom\n\n    Please double check that your authentication token is correct. Due to security reasons actual status maybe not reported, 
but 404.\n    "
Headers: {
  "cache-control": [
    "no-cache"
  ],
  "content-encoding": [
    "gzip"
  ],
  "content-security-policy": [
    "default-src 'none'; base-uri 'self'; connect-src 'self'; form-action 'self'; img-src data:; script-src 'self'; style-src 'unsafe-inline'"
  ],
  "content-type": [
    "text/plain; charset=utf-8"
  ],
  "date": [
    "Thu, 10 Aug 2017 19:21:15 GMT"
  ],
  "public-key-pins": [
    "max-age=5184000; pin-sha256=\"WoiWRyIOVNa9ihaBciRSC7XHjliYS9VwUGOIud4PB18=\"; pin-sha256=\"RRM1dGqnDFsCJXBTHky16vi1obOlCgFFn/yOhI/y+ho=\"; pin-sha256=\"k2v657xBsOVe1PQRwOsHsw3bsGT2VzIqz5K+59sNQws=\"; pin-sha256=\"K87oWBWM9UZfyddvDfoxL+8lpNyoUB2ptGtn0fv6G2Q=\"; pin-sha256=\"IQBnNBEiFuhj+8x6X8XLgh01V9Ic5/V3IRQLNFFc7v4=\"; pin-sha256=\"iie1VXtL7HzAMF+/PVPR9xzT80kQxdZeJ+zduCB3uj0=\"; pin-sha256=\"LvRiGEjRqfzurezaWuj8Wie2gyHMrW5Q06LspMnox7A=\"; includeSubDomains"
  ],
  "server": [
    "GitHub.com"
  ],
  "status": [
    "404 Not Found"
  ],
  "strict-transport-security": [
    "max-age=31536000; includeSubdomains; preload"
  ],
  "transfer-encoding": [
    "chunked"
  ],
  "vary": [
    "X-PJAX"
  ],

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
develarcommented, Aug 12, 2017

Do you understand that your users will need to have token? Are you on macOS?

1reaction
develarcommented, Aug 14, 2017

You should not use private github repo. Only if you understand what are you doing (e.g. you have GitHub org and create special read-only user to access releases).

  1. You must not inject token during build using configuration. It is only for runtime.
  2. terminal env on mac not available for mac app (https://github.com/sindresorhus/shell-env).

So, if you are not sure — do not use private repo. If you don’t have public repo — just use s3.

Read more comments on GitHub >

github_iconTop Results From Across the Web

404 Page Not Found Error: What It Is and How to Fix It - Lifewire
The 404 Not Found error, also called Error 404 or an HTTP 404 error, means that the web page you were trying to...
Read more >
Error 404: 4 Ways to Fix It - Hostinger
Error 404 is a response code, meaning the server could not locate the requested content. Check this article to learn 4 steps to...
Read more >
How to Fix Error 404 Not Found on Your WordPress Site - Kinsta
The Error 404 Not Found status code indicates that the origin server did not find the target resource. Check out these common causes...
Read more >
"There was an error downloading the update. (404)" when ...
404 is a not found error. When creating the update, what did you specify for the update's download path? That's what the client...
Read more >
How to fix the Runtime Code 404 Windows Update Error 404
Runtime Code 404 happens when Windows Update fails or crashes whilst it's running, hence its name. It doesn't necessarily mean that the code...
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