- Notifications
You must be signed in to change notification settings - Fork 90
Closed as not planned
Labels
Description
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.