Skip to content

13.2.0 causes 422 (Unprocessable Entity) due to missing ref #746

@syphernl

Description

@syphernl

After updating from 13.1.0 to 13.2.0 releases are now failing with 422 (Unprocessable Entity):

[7:41:59 AM] [semantic-release] › ✔ Created tag v1.1.1 [7:41:59 AM] [semantic-release] › ℹ Start step "publish" of plugin "@semantic-release/gitlab" [7:42:00 AM] [semantic-release] [@semantic-release/gitlab] › ✘ An error occurred while making a request to the GitLab release API: HTTPError: Response code 422 (Unprocessable Entity) at Request.<anonymous> (file:///usr/local/lib/node_modules/@semantic-release/gitlab/node_modules/got/dist/source/as-promise/index.js:92:42) at Object.onceWrapper (node:events:634:26) at Request.emit (node:events:531:35) at Request._onResponseBase (file:///usr/local/lib/node_modules/@semantic-release/gitlab/node_modules/got/dist/source/core/index.js:604:22) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Request._onResponse (file:///usr/local/lib/node_modules/@semantic-release/gitlab/node_modules/got/dist/source/core/index.js:646:13) { input: undefined, code: 'ERR_NON_2XX_3XX_RESPONSE', 

POST'ing the same body using cURL on the CLI results in a more clear error message:

{"message":"Ref is not specified"}

Also, according to the release notes this error message should have been logged directly by this plugin but does not appear to be the case in this particular instance.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions