Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
MetRonnie opened this issue Apr 26, 2023 · 12 comments
Open
Labels
bug Something isn't working

Comments

@MetRonnie
Copy link

MetRonnie commented Apr 26, 2023

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 #127

@bmainard
Copy link

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.

@felipesu19 felipesu19 moved this from Backlog 🗒 to Triaged 📝 in GitHub Actions VS Code Extension May 15, 2023
@jimbrig
Copy link

jimbrig commented May 23, 2023

Similar issue here, but only for certain actions

@tsela
Copy link

tsela commented May 26, 2023

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

@michaelsoriano
Copy link

same issue here.

@cmanage1
Copy link

same issue with serverless/github-action@v3.2

@tvanantwerp
Copy link

Any updates on this issue?

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

image image

@AMD-NICK
Copy link

Re-authorization in VSCode helped me solve the problem

screenshot_2023-11-15_23 09 25@2x

@elasticdotventures
Copy link

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.

@yeasir01
Copy link

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.

@phenix3443
Copy link

same issues. look forward to resolve.

@ps29
Copy link

ps29 commented Mar 12, 2024

Re-authorization in VSCode helped me solve the problem

screenshot_2023-11-15_23 09 25@2x

This helped me.😊

@foux
Copy link

foux commented May 31, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Triaged 📝
Development

No branches or pull requests