gitlab icon indicating copy to clipboard operation
gitlab copied to clipboard

HTTPError: Response code 404 (Not Found)

Open bingling0084 opened this issue 4 years ago • 4 comments

[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.

bingling0084 avatar Nov 08 '21 12:11 bingling0084

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'
}

plup avatar Nov 10 '21 15:11 plup

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.

balessan avatar Nov 11 '21 09:11 balessan

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

plup avatar Nov 11 '21 15:11 plup

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

kabomi avatar Feb 28 '22 11:02 kabomi