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 does not support enterprise Github

See original GitHub issue
  • Version: electron: 1.6.11 electron-builder: 19.19.1 electron-updater: 2.8.2
  • Target: win & mac

The similar issue is found here. The main problem is electron-updater doesn’t support enterprise Github. When I use demo code, I always got this

[2017-08-05 10:24:47:0781] [info] App starting...
[2017-08-05 10:24:48:0166] [info] Checking for update
[2017-08-05 10:24:48:0166] [info] Checking for update...
[2017-08-05 10:24:51:0834] [error] Error: Error: Unable to find latest version on GitHub (https://github.***.com/repos/<owner>/<repo>/releases/latest), please ensure a production release exists: HttpError: 406 Not Acceptable
" "
Headers: {
  "cache-control": [
    "no-cache, no-store"
  ],
  "connection": [
    "keep-alive"
  ],
...

Here is my publish config block

"build": {
   ...
    "publish": [{
        "provider": "github",
        "host": "github.***.com",
        "owner": "<owner>",
        "repo": "<repo>",
        "token": "<personal access token>"
      }]
}

I am using newest electron libraries

  "devDependencies": {
    "electron": "1.6.11",
    "electron-builder": "19.19.1"
  },
  "dependencies": {
    "electron-log": "2.2.7",
    "electron-updater": "2.8.2"
  },

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
applecoolcommented, Nov 30, 2018

@develar This is the exact problem which I am facing right now. How could I fix this?

0reactions
nahellercommented, Nov 12, 2017

@develar I am having a similar problem. How can I change the url from htps://github.***.com/api/v3/repos/<owner>/<repo>/releases/latest to https://github.***.com/repos/<owner>/<repo>/releases/latest?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issue with electron-updater on github enterprise #7162
I came to conclusion that auto-updater was not using my exported GH_TOKEN variable. which i would export when i would run the builder...
Read more >
Electron update fails when using enterprise github #1661
electron-builder: 18.6.2 electron-updater: 2.1.2 target: win I'm trying to use an autoupdater for github, my build has the following block: ...
Read more >
fix PrivateGitHubProvider not support enterprise Github
I used private enterprise Github not support get release laster version api. I found GitHubProvider.js is support. So commit this pr #2038, ...
Read more >
GitHub Enterprise support · Issue #1225
From Publishing-Artifacts#GithubOptions it seems to assume github.com. Is github enterprise supported? The text was updated successfully, but ...
Read more >
Electron Updater: Error checking for updates on Private ...
I have encountered an error running electron-updater against GitHub enterprise: [11:02:13.525] [error] Error: TypeError: Cannot read ...
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