electron-userland / electron-builder

A complete solution to package and build a ready for distribution Electron app with “auto update” support out of the box
https://www.electron.build
MIT License
13.57k stars 1.73k forks source link

Auto updates with corporate gitlab #4011

Closed osenvosem closed 5 years ago

osenvosem commented 5 years ago

I'm trying to setup application auto-updates on our corporate GitLab. I created and setup the gitlab token, but get the error

  Error: HttpError: 401 Unauthorized
  "---\n:error: You need to sign in or sign up before continuing.\n"
  Headers: {
    "cache-control": [
      "no-cache"
    ],
    "content-length": [
      "62"
    ],
    "content-security-policy": [
      "object-src 'none'; worker-src https://assets.gitlab-static.net https://gl-canary.freetls.fastly.net https://gitlab.com blob:; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://assets.gitlab-static.net https://gl-canary.freetls.fastly.net https://www.google.com/recaptcha/ https://www.recaptcha.net/ https://www.gstatic.com/recaptcha/ https://apis.google.com; style-src 'self' 'unsafe-inline' https://assets.gitlab-static.net https://gl-canary.freetls.fastly.net; img-src * data: blob:; frame-src 'self' https://www.google.com/recaptcha/ https://www.recaptcha.net/ https://content.googleapis.com https://content-compute.googleapis.com https://content-cloudbilling.googleapis.com https://content-cloudresourcemanager.googleapis.com https://*.codesandbox.io; frame-ancestors 'self'; connect-src 'self' https://assets.gitlab-static.net https://gl-canary.freetls.fastly.net wss://gitlab.com https://sentry.gitlab.net https://customers.gitlab.com https://snowplow.trx.gitlab.net"
    ],
    "content-type": [
      "application/x-yaml; charset=utf-8"
    ],
    "date": [
      "Wed, 03 Jul 2019 15:18:59 GMT"
    ],
    "server": [
      "nginx"
    ],
    "x-request-id": [
      "kJTv5G4Jod2"
    ],
    "x-runtime": [
      "0.017578"
    ]
  }

Could someone suggest working setup/tutorial/example for gitlab?

AsithaDisanayake commented 5 years ago

@osenvosem how did you resolve this 401 unauthorized issue? I am stuck on this issue for some days. I could not able to understand what is the issue. Cant find a solution for this issue. I really appreciate your help