Electron-builder: Error Updating From Private GitHub Repo

Created on 26 Feb 2018  Â·  4Comments  Â·  Source: electron-userland/electron-builder



electron-builder Version: 20.0.7

electron-updater Version:2.20.1

  • Target:
    Mac

    From what I can tell, I'm getting a 404 error in the auto updater when trying to find the release in my Private Github Repository. I've created an access token and set the GH_TOKEN environment variable on my laptop, but for some reason, the auto updater is using the wrong URL. I've included the full error below.

Error in auto-updater. HttpError: 404 Not Found
"method: undefined url: https://github.com/jaret32/JustBotIt/releases.atom\n\nPlease 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": [
"Mon, 26 Feb 2018 06:53:49 GMT"
],
"expect-ct": [
"max-age=2592000, report-uri=\"https://api.github.com/_private/browser/errors\""
],
"server": [
"GitHub.com"
],
"status": [
"404 Not Found"
],
"strict-transport-security": [
"max-age=31536000; includeSubdomains; preload"
],
"transfer-encoding": [
"chunked"
],
"vary": [
"X-PJAX"

obsolete

Most helpful comment

@jaret32 I received this error when I didn't set the token property passed into setFeedURL.

autoUpdater.setFeedURL({
    provider: 'github',
    repo: 'repo',
    owner: 'owner',
    private: true,
    token: '<personal-access-token>'
})

All 4 comments

Related #2559

Does anyone have any suggestions? The related problem is different than mine.

I am getting the same error, but from a public repository.

electron-builder Version: ^20.24.4
electron-updater Version: ^3.0.3

OS: Windows 10 64x

I create a window that shows when the app is checking for an update/updating. The actual updater code is not in the rendered window, but in the main.js.
The release is out, latest.yml is uploaded (I published using electron-builder, like the guide says to), but I think I get blocked before I can even access it.

However I get the following error:

{description: "method: undefined url: https://github.com/CodeDigi…asons actual status maybe not reported, but 404.↵", name: "HttpError", statusCode: 404} description : "method: undefined url: https://github.com/CodeDigital/botmyguy/releases/download/v0.0.3-pre-alpha/latest.yml↵↵Please double check that your authentication token is correct. Due to security reasons actual status maybe not reported, but 404.↵" name : "HttpError" statusCode : 404

I will probably create a separate issue as my github repository is public...

@jaret32 I received this error when I didn't set the token property passed into setFeedURL.

autoUpdater.setFeedURL({
    provider: 'github',
    repo: 'repo',
    owner: 'owner',
    private: true,
    token: '<personal-access-token>'
})
Was this page helpful?
0 / 5 - 0 ratings

Related issues

xingoxu picture xingoxu  Â·  3Comments

popod picture popod  Â·  3Comments

JohnWeisz picture JohnWeisz  Â·  3Comments

NPellet picture NPellet  Â·  3Comments

antonycourtney picture antonycourtney  Â·  3Comments