Always parse axios errors Axios throws huge error objects which makes logging very verbose and it often includes sensitive data in the logs #1940
release-drafter.yml
on: pull_request
update_release_draft
6s
Annotations
2 errors
update_release_draft
Validation Failed: {"resource":"Release","code":"invalid","field":"target_commitish"}
{
name: 'HttpError',
id: '11506408989',
status: 422,
response: {
url: 'https://api.github.com/repos/gettakaro/takaro/releases/180878096',
status: 422,
headers: {
'access-control-allow-origin': '*',
'access-control-expose-headers': 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset',
connection: 'close',
'content-length': '210',
'content-security-policy': "default-src 'none'",
'content-type': 'application/json; charset=utf-8',
date: 'Thu, 24 Oct 2024 19:49:13 GMT',
'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin',
server: 'github.com',
'strict-transport-security': 'max-age=31536000; includeSubdomains; preload',
vary: 'Accept-Encoding, Accept, X-Requested-With',
'x-accepted-github-permissions': 'contents=write',
'x-content-type-options': 'nosniff',
'x-frame-options': 'deny',
'x-github-api-version-selected': '2022-11-28',
'x-github-media-type': 'github.v3; format=json',
'x-github-request-id': '0508:1EC36B:5348B8D:A01AB35:671AA4B9',
'x-ratelimit-limit': '5000',
'x-ratelimit-remaining': '4977',
'x-ratelimit-reset': '1729801880',
'x-ratelimit-resource': 'core',
'x-ratelimit-used': '23',
'x-xss-protection': '0'
},
data: {
message: 'Validation Failed',
errors: [
{
resource: 'Release',
code: 'invalid',
field: 'target_commitish'
}
],
documentation_url: 'https://docs.github.com/rest/releases/releases#update-a-release',
status: '422'
}
},
request: {
method: 'PATCH',
url: 'https://api.github.com/repos/gettakaro/takaro/releases/180878096',
headers: {
accept: 'application/vnd.github.v3+json',
'user-agent': 'probot/12.2.5 octokit-core.js/3.5.1 Node.js/20.13.1 (linux; x64)',
authorization: 'token [REDACTED]',
'content-type': 'application/json; charset=utf-8'
},
body: '{"body":"## Changes\\n\\n## 🐛 Bug Fixes\\n\\n- Fix an issue deleting users @niekcandaele (#1718)\\n- Add back support for old 7d2d versions @niekcandaele (#1713)\\n- Fix shop not giving items without quality @niekcandaele (#1711)\\n- Make name required in shop listings @niekcandaele (#1703)\\n\\n## 🧰 Maintenance\\n\\n- Improve how validation errors get logged @niekcandaele (#1715)\\n- Trim down how much gets logged about 7d2d commands @niekcandaele (#1705)\\n- Put renovate on a schedule @niekcandaele (#1701)\\n","draft":true,"prerelease":false,"make_latest":"true","name":"v0.0.15","tag_name":"v0.0.15","target_commitish":"refs/pull/1704/merge"}',
request: {}
},
event: {
id: '11506408989',
name: 'pull_request',
payload: {
action: 'synchronize',
after: '0184efc4d05d1cf50448bdab4351658da9c0f943',
before: 'c4a20580ec663862deeaae3c247341d6ea0ab9d2',
number: 1704,
organization: {
avatar_url: 'https://avatars.githubusercontent.com/u/127662528?v=4',
description: '',
events_url: 'https://api.github.com/orgs/gettakaro/events',
hooks_url: 'https://api.github.com/orgs/gettakaro/hooks',
id: 127662528,
issues_url: 'https://api.github.com/orgs/gettakaro/issues',
login: 'gettakaro',
members_url: 'https://api.github.com/orgs/gettakaro/members{/member}',
node_id: 'O_kgDOB5v5wA',
public_members_url: 'https://api.github.com/orgs/gettakaro/public_members{/member}',
repos_url: 'https://api.github.com/orgs/gettakaro/repos',
url: 'https://api.github.com/orgs/gettakaro'
},
pull_request: {
_links: {
comments: {
href: 'https://api.github.com/repos/gettakaro/takaro/issues/1704/comment
|
update_release_draft
HttpError: Validation Failed: {"resource":"Release","code":"invalid","field":"target_commitish"}
at /home/runner/work/_actions/release-drafter/release-drafter/v6/dist/index.js:8462:21
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Job.doExecute (/home/runner/work/_actions/release-drafter/release-drafter/v6/dist/index.js:30793:18)
{
name: 'AggregateError',
event: {
id: '11506408989',
name: 'pull_request',
payload: {
action: 'synchronize',
after: '0184efc4d05d1cf50448bdab4351658da9c0f943',
before: 'c4a20580ec663862deeaae3c247341d6ea0ab9d2',
number: 1704,
organization: {
avatar_url: 'https://avatars.githubusercontent.com/u/127662528?v=4',
description: '',
events_url: 'https://api.github.com/orgs/gettakaro/events',
hooks_url: 'https://api.github.com/orgs/gettakaro/hooks',
id: 127662528,
issues_url: 'https://api.github.com/orgs/gettakaro/issues',
login: 'gettakaro',
members_url: 'https://api.github.com/orgs/gettakaro/members{/member}',
node_id: 'O_kgDOB5v5wA',
public_members_url: 'https://api.github.com/orgs/gettakaro/public_members{/member}',
repos_url: 'https://api.github.com/orgs/gettakaro/repos',
url: 'https://api.github.com/orgs/gettakaro'
},
pull_request: {
_links: {
comments: {
href: 'https://api.github.com/repos/gettakaro/takaro/issues/1704/comments'
},
commits: {
href: 'https://api.github.com/repos/gettakaro/takaro/pulls/1704/commits'
},
html: { href: 'https://github.com/gettakaro/takaro/pull/1704' },
issue: {
href: 'https://api.github.com/repos/gettakaro/takaro/issues/1704'
},
review_comment: {
href: 'https://api.github.com/repos/gettakaro/takaro/pulls/comments{/number}'
},
review_comments: {
href: 'https://api.github.com/repos/gettakaro/takaro/pulls/1704/comments'
},
self: {
href: 'https://api.github.com/repos/gettakaro/takaro/pulls/1704'
},
statuses: {
href: 'https://api.github.com/repos/gettakaro/takaro/statuses/0184efc4d05d1cf50448bdab4351658da9c0f943'
}
},
active_lock_reason: null,
additions: 148,
assignee: null,
assignees: [],
author_association: 'COLLABORATOR',
auto_merge: {
commit_message: ' Always parse axios errors Axios throws huge error objects which makes logging very verbose and it often includes sensitive data in the logs\r\n' +
' ',
commit_title: 'Merge pull request #1704 from gettakaro/handle-axios-errors-better',
enabled_by: {
avatar_url: 'https://avatars.githubusercontent.com/u/22315101?v=4',
events_url: 'https://api.github.com/users/niekcandaele/events{/privacy}',
followers_url: 'https://api.github.com/users/niekcandaele/followers',
following_url: 'https://api.github.com/users/niekcandaele/following{/other_user}',
gists_url: 'https://api.github.com/users/niekcandaele/gists{/gist_id}',
gravatar_id: '',
html_url: 'https://github.com/niekcandaele',
id: 22315101,
login: 'niekcandaele',
node_id: 'MDQ6VXNlcjIyMzE1MTAx',
organizations_url: 'https://api.github.com/users/niekcandaele/orgs',
received_events_url: 'https://api.github.com/users/niekcandaele/received_events',
repos_url: 'https://api.github.com/users/niekcandaele/repos',
site_admin: false,
starred_url: 'https://api.github.com/users/niekcandaele/starred{/owner}{/repo}',
subscriptions_url: 'https://api.github.com/users/niekcandaele/subscriptions',
type: 'User',
url: 'https://api.github.com/users/niekcandaele',
user_view_type: 'public'
},
merge_method
|