vscode-github-actions icon indicating copy to clipboard operation
vscode-github-actions copied to clipboard

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

Open MetRonnie opened this issue 1 year ago • 12 comments

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

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

MetRonnie avatar Apr 26 '23 10:04 MetRonnie

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.

image

The discussion at #127 seems to reject a proxy problem but I think it is the cause.

bmainard avatar Apr 26 '23 13:04 bmainard

Similar issue here, but only for certain actions

jimbrig avatar May 23 '23 00:05 jimbrig

I have the exact same issue, but in my case the given error is ECONNRESET rather than ETIMEDOUT. Otherwise identical issue.

tsela avatar May 26 '23 13:05 tsela

same issue here.

michaelsoriano avatar Jun 19 '23 17:06 michaelsoriano

same issue with serverless/[email protected]

cmanage1 avatar Jun 19 '23 21:06 cmanage1

Any updates on this issue?

Every single action I try to use has this error, and it's been ongoing for months.

image image

tvanantwerp avatar Nov 03 '23 17:11 tvanantwerp

Re-authorization in VSCode helped me solve the problem

screenshot_2023-11-15_23 09 25@2x

AMD-NICK avatar Nov 15 '23 21:11 AMD-NICK

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.

elasticdotventures avatar Dec 27 '23 23:12 elasticdotventures

Re-authorization in VSCode helped me solve the problem

screenshot_2023-11-15_23 09 25@2x

This seems to fix it. It seems like a bug that needs to be investigated.

yeasir01 avatar Jan 28 '24 09:01 yeasir01

same issues. look forward to resolve.

phenix3443 avatar Feb 21 '24 05:02 phenix3443

Re-authorization in VSCode helped me solve the problem

screenshot_2023-11-15_23 09 25@2x

This helped me.😊

ps29 avatar Mar 12 '24 07:03 ps29

Signing out and back in didn't sove it for me :/ Have the issue on actions/checkout@v3 and subosito/flutter-action@v2

foux avatar May 31 '24 11:05 foux