Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Request textDocument/hover failed

未關閉
#500 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
28/100
Issue 類型
缺陷
描述清晰度
需要釐清
活躍度
停滯
技術堆疊
github-actions, typescript, vscode

研究方向

首先在擴充功能版本 v0.27.2 中重現 textDocument/hover,並檢查 /user 請求與 dist/server-node.js 堆疊追蹤附近的 VS Code 記錄。完成的標準是,將滑鼠停留在 GitHub Action 上時不再顯示錯誤提示,且記錄的請求不會因 connect EACCES 而失敗。

由索引模型根據 Issue 內容生成。

描述

bug

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 <<some IP address>>: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 <<some IP address>>:443
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1636:16) {
      errno: -4092,
      code: 'EACCES',
      syscall: 'connect',
      address: '<<some IP address>>',
      port: 443
    }
  }
}
[Error - 1:01:01 PM] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect EACCES <<some IP address>>:443
  Code: -32603 
GET /user - 500 with id UNKNOWN in 4ms
Failure to retrieve username:  Xi [HttpError]: connect EACCES <<some IP address>>: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 <<some IP address>>:443
        at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1636:16) {
      errno: -4092,
      code: 'EACCES',
      syscall: 'connect',
      address: '<<some IP address>>',
      port: 443
    }
  }
}
[Error - 1:01:02 PM] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: connect EACCES <<some IP address>>:443
  Code: -32603 

Extension Version
v0.27.2

Additional context
/

主要語言
TypeScript
星號
661
分支
214
PR 合併指標
30 天內沒有已合併 PR

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

github/vscode-github-actions 的其他 Issue

查看 github/vscode-github-actions 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。