github / github/vscode-github-actions

Unable to resolve action, repository or version not found (`ETIMEDOUT`)

未关闭
#143 14 条评论 22 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
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**

![image](https://github.com/github/vscode-github-actions/assets/61982285/a8184468-1ee5-4635-b642-c13361cce1c6)

**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_

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。