Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nsis-web: Github trying to release return "HttpError: 422 Unprocessable Entity" #2396

Closed
marceloavf opened this issue Dec 18, 2017 · 0 comments

Comments

@marceloavf
Copy link
Contributor

  • Version: 19.49.0
  • Electron-updater: 2.16.3
  • Target: Windows

Trying to publish when there is an draft/prerelease already publised to github with the same tag, even if I put releaseType: release after yarn release it returns:

Error: Cannot cleanup: 
Error #1 --------------------------------------------------------------------------------
HttpError: 422 Unprocessable Entity
{
  "message": "Validation Failed",
  "request_id": "C351:2B65:D37920:DFB9D5:5A37B1FF",
  "documentation_url": "https://developer.github.com/v3",
  "errors": [
    {
      "resource": "ReleaseAsset",
      "code": "already_exists",
      "field": "name"
    }
  ]
}
Headers: {
  "cache-control": "no-cache",
  "content-length": "211",
  "content-security-policy": "default-src 'none'",
  "content-type": "application/json; charset=utf-8",
  "strict-transport-security": "max-age=31557600",
  "x-accepted-oauth-scopes": "repo",
  "x-content-type-options": "nosniff",
  "x-frame-options": "deny",
  "x-github-media-type": "github.v3; format=json",
  "x-oauth-scopes": "admin:org, admin:repo_hook, repo",
  "x-xss-protection": "1; mode=block",
  "date": "Mon, 18 Dec 2017 12:18:07 GMT",
  "connection": "close",
  "x-github-request-id": "C351:2B65:D37920:DFB9D5:5A37B1FF"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants