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

HTTPError: Response code 404 (Not Found) #299

Open
bingling0084 opened this issue Nov 8, 2021 · 4 comments
Open

HTTPError: Response code 404 (Not Found) #299

bingling0084 opened this issue Nov 8, 2021 · 4 comments

Comments

@bingling0084
Copy link

bingling0084 commented Nov 8, 2021

[semantic-release] [@semantic-release/gitlab] › ✖  An error occurred while making a request to the GitLab release API:
HTTPError: Response code 404 (Not Found)
    at Request.<anonymous> (/comoponent-lib/node_modules/got/dist/source/as-promise/index.js:117:42)
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  code: undefined,
  timings: {
    start: 1636370892010,
    socket: 1636370892010,
    lookup: 1636370892012,
    connect: 1636370892013,
    secureConnect: 1636370892013,
    upload: 1636370892014,
    response: 1636370892023,
    end: 1636370892023,
    error: undefined,
    abort: undefined,
    phases: {
      wait: 0,
      dns: 2,
      tcp: 1,
      tls: 0,
      request: 1,
      firstByte: 9,
      download: 0,
      total: 13
    }
  }
}
[11:28:12 AM] [semantic-release] › ✖  Failed step "publish" of plugin "@semantic-release/gitlab"

.releaserc

{
  "branches": [
    "+([0-9])?(.{+([0-9]),x}).x",
    "master",
    "next",
    "next-major",
  ],
  "plugins": [
    "@semantic-release/commit-analyzer",
    "@semantic-release/release-notes-generator",
    "@semantic-release/changelog",
    "@semantic-release/npm",
    "@semantic-release/git",
    [
      "@semantic-release/gitlab",
      {
        "assets": [
          { "path": "build/**/*", "label": "Compiled files" }
        ]
      }
    ]
  ]
}

gitlab version: v11.4.0
"@semantic-release/changelog": "^6.0.1",
"@semantic-release/git": "^10.0.1",
"@semantic-release/gitlab": "^7.0.4",
"@semantic-release/npm": "^8.0.3",
"semantic-release": "^18.0.0"

Thanks for your help.

@plup
Copy link

plup commented Nov 10, 2021

I get the same error:

[3:24:53 PM] [semantic-release] › ℹ  Start step "publish" of plugin "@semantic-release/gitlab"
[3:24:53 PM] [semantic-release] › ✖  Failed step "publish" of plugin "@semantic-release/gitlab"
[3:24:53 PM] [semantic-release] › ✖  An error occurred while running semantic-release: HTTPError: Response code 404 (Not Found)
    at EventEmitter.<anonymous> (/usr/local/lib/node_modules/@semantic-release/gitlab/node_modules/got/dist/source/as-promise.js:118:31)
    at processTicksAndRejections (internal/process/task_queues.js:95:5) {
  pluginName: '@semantic-release/gitlab'
}

@balessan
Copy link

That looks like a blocker to me, any idea how we can get what's going on here ?

Collaborator of @plup here, we got this issue in our publishing pipeline using @semantic-release/gitlab to push some of our packages update to NPM automatically and it stopped working right after our Gitlab hosting upgrade.

We tried to push the semantic-release/gitlab version to 6.0.7 which should be the minimal compatible with Gitlab v14 but no luck. We are not familiar with debugging this component so any help appreciated. Hard to tell if we still have some configuration issues or anything else.

@plup
Copy link

plup commented Nov 11, 2021

An update to the last major version of all components (semantic-release@18, @semantic-release/gitlab@7) solved the problem for us.

@kabomi
Copy link

kabomi commented Feb 28, 2022

We got the same error using v6.0.2 & [email protected].
It stopped working after we upgraded gitlab. Not sure which version it was, but what I know is that that config didn't work with gitlab community edition 14.5.2.

Upgrading semantic-release/[email protected] worked out

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

4 participants