Failure to retrieve variables: Cs [HttpError]: Not Found
{
status: 404,
response: {
url: 'https://***/api/v3/repos/***/***/actions/variables?per_page=100',
status: 404,
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',
'content-encoding': 'gzip',
'content-security-policy': "default-src 'none'",
'content-type': 'application/json; charset=utf-8',
date: 'Wed, 10 Apr 2024 16:41:09 GMT',
'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin',
server: 'GitHub.com',
'strict-transport-security': 'max-age=31536000; includeSubdomains',
'transfer-encoding': 'chunked',
'x-accepted-oauth-scopes': 'repo',
'x-content-type-options': 'nosniff',
'x-frame-options': 'deny',
'x-github-enterprise-version': '3.7.5',
'x-github-media-type': 'github.v3; format=json',
'x-github-request-id': '***',
'x-oauth-client-id': '***',
'x-oauth-scopes': 'repo, workflow',
'x-ratelimit-limit': '5000',
'x-ratelimit-remaining': '4982',
'x-ratelimit-reset': '1712767559',
'x-ratelimit-resource': 'core',
'x-ratelimit-used': '18',
'x-runtime-rack': '0.033786',
'x-xss-protection': '0'
},
data: {
message: 'Not Found',
documentation_url: 'https://docs.github.com/[email protected]/rest'
}
},
request: {
method: 'GET',
url: 'https://***/api/v3/repos/***/***/actions/variables?per_page=100',
headers: {
accept: 'application/vnd.github.v3+json',
'user-agent': 'VS Code GitHub Actions (0.26.2) octokit-rest.js/19.0.7 octokit-core.js/4.1.0 Node.js/18.18.2 (linux; x64)',
authorization: 'token [REDACTED]'
},
request: { hook: [Function: bound bound e] }
}
}
And the error would be waived. But it looks like the error isn't handled properly for e.name == "HttpError" && e.status == 404
and the error is thrown anyway.