github / github/vscode-github-actions
Unable to resolve action, repository or version not found (`ETIMEDOUT`)
- 主要言語
- TypeScript
- スター
- 660
- フォーク
- 213
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
**Describe the bug**
Hovering over an action name fails to load any info about it from the GitHub API, and after a while I might get an error notification.
**To Reproduce**
See description above & screenshot below
**Expected behavior**
No error
**Screenshots**

**Extension Version**
`v0.25.6`
OS: Linux & Windows
**Additional context**
From the logs for GitHub Actions Language Server:
```
[Error - 10:48:06 AM] Failed to fetch action metadata for actions/checkout/v3: 'request to https://api.github.com/repos/actions/checkout/contents/action.yml?ref=v3 failed, reason: connect ETIMEDOUT :443'
```
and
```
Failure to retrieve username: Ms [HttpError]: request to https://api.github.com/user failed, reason: connect ETIMEDOUT :443
at ~/.vscode/extensions/github.vscode-github-actions-0.25.4/dist/server-node.js:2:2785024
at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
at async ~/.vscode/extensions/github.vscode-github-actions-0.25.4/dist/server-node.js:2:2856983
at async wa.get (~/.vscode/extensions/github.vscode-github-actions-0.25.4/dist/server-node.js:2:2866891)
at async ~/.vscode/extensions/github.vscode-github-actions-0.25.4/dist/server-node.js:2:2856918
at async la (~/.vscode/extensions/github.vscode-github-actions-0.25.4/dist/server-node.js:2:2856885)
at async ~/.vscode/extensions/github.vscode-github-actions-0.25.4/dist/server-node.js:2:2860689
at async Object.getContext (~/.vscode/extensions/github.vscode-github-actions-0.25.4/dist/server-node.js:2:2860645)
at async oi (~/.vscode/extensions/github.vscode-github-actions-0.25.4/dist/server-node.js:2:2733949)
at async gn (~/.vscode/extensions/github.vscode-github-actions-0.25.4/dist/server-node.js:2:2759192) {
status: 500,
request: {
method: 'GET',
url: 'https://api.github.com/user',
headers: {
accept: 'application/vnd.github.v3+json',
'user-agent': 'VS Code GitHub Actions (0.25.4) octokit-rest.js/19.0.7 octokit-core.js/4.1.0 Node.js/16.14.2 (linux; x64)',
authorization: 'token [REDACTED]'
},
request: { hook: [Function: bound bound e] }
}
```
_Originally opened as a discussion at https://github.com/github/vscode-github-actions/discussions/127_
コントリビューションガイド
調査の方向性
Start by reproducing the hover failure in the GitHub Actions Language Server and review the logged requests to api.github.com for action metadata and the current user. The issue points to dist/server-node.js in the extension; use the ETIMEDOUT traces and the expected no-error behavior to define and verify the fix.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- github, typescript, vscode
- 領域
- api, developer-experience
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 静か
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100