github / github/vscode-github-actions

Request textDocument/hover failed

Aperta
#500 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug
Lingua principale
TypeScript
Stelle
660
Fork
213
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

**Describe the bug**
When hovering over any of my GitHub Action definitions, I constantly see an error toaster with the error message `Request textDocument/hover failed`.

**To Reproduce**
Steps to reproduce the behavior:
1. Open any GitHub Action from https://github.com/organizationOfMyCompany
2. Hover over the GitHub Action in the editor pane.
3. The error toaster appears.

**Expected behavior**
No error toaster appears.

**Screenshots / Logs**
Here are the VS Code logs:
```
GET /user - 500 with id UNKNOWN in 11ms
Failure to retrieve username: Xi [HttpError]: connect EACCES <>:443
at Zi (c:\Users\myUser\.vscode\extensions\github.vscode-github-actions-0.27.2\dist\server-node.js:1:2481429)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async c:\Users\myUser\.vscode\extensions\github.vscode-github-actions-0.27.2\dist\server-node.js:1:2572921
... 5 lines matching cause stack trace ...
at async yn (c:\Users\myUser\.vscode\extensions\github.vscode-github-actions-0.27.2\dist\server-node.js:1:2437365)
at async c:\Users\myUser\.vscode\extensions\github.vscode-github-actions-0.27.2\dist\server-node.js:1:2586783 {
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.27.2) octokit-rest.js/21.1.1 octokit-core.js/6.1.5 Node.js/22',
authorization: 'token [REDACTED]'
},
request: { hook: [Function: bound bound ji] }
},
response: undefined,
cause: TypeError: fetch failed
at node:internal/deps/undici/undici:13510:13
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async Zi (c:\Users\myUser\.vscode\extensions\github.vscode-github-actions-0.27.2\dist\server-node.js:1:2481060)
at async c:\Users\myUser\.vscode\extensions\github.vscode-github-actions-0.27.2\dist\server-node.js:1:2572921
at async Us.get (c:\Users\myUser\.vscode\extensions\github.vscode-github-actions-0.27.2\dist\server-node.js:1:2583112)
at async c:\Users\myUser\.vscode\extensions\github.vscode-github-actions-0.27.2\dist\server-node.js:1:2572856
at async As (c:\Users\myUser\.vscode\extensions\github.vscode-github-actions-0.27.2\dist\server-node.js:1:2572823)
at async c:\Users\myUser\.vscode\extensions\github.vscode-github-actions-0.27.2\dist\server-node.js:1:2576671
at async Object.getContext (c:\Users\myUser\.vscode\extensions\github.vscode-github-actions-0.27.2\dist\server-node.js:1:2576627)
at async yn (c:\Users\myUser\.vscode\extensions\github.vscode-github-actions-0.27.2\dist\server-node.js:1:2437365) {
[cause]: Error: connect EACCES <>:443
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1636:16) {
errno: -4092,
code: 'EACCES',
syscall: 'connect',
address: '<>',
port: 443
}
}
}
[Error - 1:01:01 PM] Request textDocument/hover failed.
Message: Request textDocument/hover failed with message: connect EACCES <>:443
Code: -32603
GET /user - 500 with id UNKNOWN in 4ms
Failure to retrieve username: Xi [HttpError]: connect EACCES <>:443
at Zi (c:\Users\myUser\.vscode\extensions\github.vscode-github-actions-0.27.2\dist\server-node.js:1:2481429)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async c:\Users\myUser\.vscode\extensions\github.vscode-github-actions-0.27.2\dist\server-node.js:1:2572921
... 5 lines matching cause stack trace ...
at async yn (c:\Users\myUser\.vscode\extensions\github.vscode-github-actions-0.27.2\dist\server-node.js:1:2437365)
at async c:\Users\myUser\.vscode\extensions\github.vscode-github-actions-0.27.2\dist\server-node.js:1:2586783 {
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.27.2) octokit-rest.js/21.1.1 octokit-core.js/6.1.5 Node.js/22',
authorization: 'token [REDACTED]'
},
request: { hook: [Function: bound bound ji] }
},
response: undefined,
cause: TypeError: fetch failed
at node:internal/deps/undici/undici:13510:13
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async Zi (c:\Users\myUser\.vscode\extensions\github.vscode-github-actions-0.27.2\dist\server-node.js:1:2481060)
at async c:\Users\myUser\.vscode\extensions\github.vscode-github-actions-0.27.2\dist\server-node.js:1:2572921
at async Us.get (c:\Users\myUser\.vscode\extensions\github.vscode-github-actions-0.27.2\dist\server-node.js:1:2583112)
at async c:\Users\myUser\.vscode\extensions\github.vscode-github-actions-0.27.2\dist\server-node.js:1:2572856
at async As (c:\Users\myUser\.vscode\extensions\github.vscode-github-actions-0.27.2\dist\server-node.js:1:2572823)
at async c:\Users\myUser\.vscode\extensions\github.vscode-github-actions-0.27.2\dist\server-node.js:1:2576671
at async Object.getContext (c:\Users\myUser\.vscode\extensions\github.vscode-github-actions-0.27.2\dist\server-node.js:1:2576627)
at async yn (c:\Users\myUser\.vscode\extensions\github.vscode-github-actions-0.27.2\dist\server-node.js:1:2437365) {
[cause]: Error: connect EACCES <>:443
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1636:16) {
errno: -4092,
code: 'EACCES',
syscall: 'connect',
address: '<>',
port: 443
}
}
}
[Error - 1:01:02 PM] Request textDocument/hover failed.
Message: Request textDocument/hover failed with message: connect EACCES <>:443
Code: -32603

```

**Extension Version**
`v0.27.2`

**Additional context**
/

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Start by reproducing textDocument/hover in extension version v0.27.2 and review the VS Code logs around the /user request and dist/server-node.js stack trace. Done means hovering over a GitHub Action no longer shows the error toaster and the logged request does not fail with connect EACCES.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
github-actions, typescript, vscode
Ambito
developer-experience, devtools
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
28/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.