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

An error occurred while running semantic-release: RequestError #3080

Open
mrgmnn opened this issue Nov 29, 2023 · 0 comments
Open

An error occurred while running semantic-release: RequestError #3080

mrgmnn opened this issue Nov 29, 2023 · 0 comments

Comments

@mrgmnn
Copy link

mrgmnn commented Nov 29, 2023

Current behavior

Hello there,
since a few days we keep ending up with semantic release failing in our github actions on every first try. Every second run will succeed. Any ideas?

Thank you

Expected behavior

Semantic release not failing

semantic-release version

10.0.1

CI environment

Github Actions

Plugins used

No response

semantic-release configuration

{
  "branches": [
    "develop"
  ],
  "debug": true,
  "ci": true,
  "dryRun": false,
  "plugins": [
    "@semantic-release/commit-analyzer",
    "@semantic-release/release-notes-generator",
    [
      "@semantic-release/npm",
      {
        "npmPublish": true,
        "files": [
          "dist"
        ]
      }
    ],
    "@semantic-release/github",
    [
      "@semantic-release/git",
      {
        "assets": [
          "package.json",
          "yarn.lock",
          "CHANGELOG.md"
        ],
        "message": "chore(release): ${nextRelease.version} [skip ci]"
      }
    ]
  ]
}

CI logs

[2:02:42 PM] [semantic-release] › ✘  An error occurred while running semantic-release: RequestError [HttpError]: fetch failed
    at /home/runner/work/prisma/prisma/node_modules/@octokit/request/dist-node/index.js:136:11
    at async requestWithGraphqlErrorHandling (/home/runner/work/prisma/prisma/node_modules/@octokit/plugin-retry/dist-node/index.js:71:20)
    at async Job.doExecute (/home/runner/work/prisma/prisma/node_modules/bottleneck/light.js:405:18) {
  status: 500,
  request: {
    method: 'POST',
    url: 'https://api.github.com/repos/plantedhq/plantedprisma/releases',
    headers: {
      accept: 'application/vnd.github.v3+json',
      'user-agent': '@semantic-release/github v9.0.4 octokit-core.js/5.0.0 Node.js/18.18.2 (linux; x64)',
      authorization: 'token [REDACTED]',
      'content-type': 'application/json; charset=utf-8'
    },
    body: '{"tag_name":"v2.7.6","target_commitish":"develop","name":"v2.7.6","body":"## [2.7.6](https://github.com/plantedhq/plantedprisma/compare/v2.7.5...v2.7.6) (2023-11-29)\\n\\n\\n### Bug Fixes\\n\\n* unique in users on accounts ([d63a714](https://github.com/plantedhq/plantedprisma/commit/d63a7148e69032e979d901de4368443edec819a5))\\n\\n\\n\\n","prerelease":false}',
    request: {
      agent: undefined,
      hook: [Function: bound bound register],
      retryCount: 3,
      retries: 3,
      retryAfter: 16
    }
  },
  pluginName: '@semantic-release/github'
}
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

1 participant