vscode-github-actions
vscode-github-actions copied to clipboard
Unable to resolve action, repository or version not found (`ETIMEDOUT`)
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 <some_ip_address>:443'
and
Failure to retrieve username: Ms [HttpError]: request to https://api.github.com/user failed, reason: connect ETIMEDOUT <some_ip_address>: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
Hello ! I have exactly the same problem. I'm on MacOS 13.3.1 and behind a proxy (configured in VSCode). The extension's GUI is OK (you can clearly see the workflows of my repo) but the api calls made to github.com in the background when editing a workflow file are in timeout.
When I test that out of proxy, everything is OK.
The discussion at #127 seems to reject a proxy problem but I think it is the cause.
Similar issue here, but only for certain actions
I have the exact same issue, but in my case the given error is ECONNRESET rather than ETIMEDOUT. Otherwise identical issue.
same issue here.
same issue with serverless/[email protected]
Any updates on this issue?
Every single action I try to use has this error, and it's been ongoing for months.
Re-authorization in VSCode helped me solve the problem
This extension shouuld detect that the authorization is no longer valid and attempt to renew/refresh the github token.
For others, if you want to confirm this is your issue - In vscode you can go to the OUTPUT then select "Github Actions" and you'll see messages about how authentication has failed.
I have quite a few plugins which use github tokens and so it's possible this problem is related to interaction between them.
Re-authorization in VSCode helped me solve the problem
This seems to fix it. It seems like a bug that needs to be investigated.
same issues. look forward to resolve.
Re-authorization in VSCode helped me solve the problem
This helped me.😊
Signing out and back in didn't sove it for me :/
Have the issue on actions/checkout@v3
and subosito/flutter-action@v2