Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Failure to retrieve username: Ls [HttpError]: fetch failed

オープン
#403 コメント 3 件 リアクション 6 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
github-actions, typescript, vscode

調査の方向性

まず、GitHub Actions extension 0.27.0 を使用した workflow ファイルで、ホバーによって発生する失敗を再現し、次に dist/server-node.js の報告された呼び出しと https://api.github.com/user へのリクエストを調査します。issue #282 と動作を比較します。完了の条件は、ホバー検証でエラーが繰り返し表示されなくなり、fetch-failed の出力も生成されなくなることです。

索引モデルが issue の本文から書いたものです。

説明

bug

Describe the bug
When I am editing a workflow file, and my mouse moves, I get an error box pup up repeatedly. It can pop up several times over the course of a single pointer movement down the file.

To Reproduce
Steps to reproduce the behavior:

  1. Edit any workflow file
  2. Hover over any any of several steps/components of the workflow
  3. See error

image

When the popup occurs, I get this in the OUTPUT tab:

Failure to retrieve username:  Ls [HttpError]: fetch failed
    at /Users/user/.vscode/extensions/github.vscode-github-actions-0.27.0/dist/server-node.js:2:2789085
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async /Users/user/.vscode/extensions/github.vscode-github-actions-0.27.0/dist/server-node.js:2:2861044
    at async ka.get (/Users/user/.vscode/extensions/github.vscode-github-actions-0.27.0/dist/server-node.js:2:2871213)
    at async /Users/user/.vscode/extensions/github.vscode-github-actions-0.27.0/dist/server-node.js:2:2860979
    at async ca (/Users/user/.vscode/extensions/github.vscode-github-actions-0.27.0/dist/server-node.js:2:2860946)
    at async /Users/user/.vscode/extensions/github.vscode-github-actions-0.27.0/dist/server-node.js:2:2864782
    at async Object.getContext (/Users/user/.vscode/extensions/github.vscode-github-actions-0.27.0/dist/server-node.js:2:2864738)
    at async oi (/Users/user/.vscode/extensions/github.vscode-github-actions-0.27.0/dist/server-node.js:2:2727430)
    at async /Users/user/.vscode/extensions/github.vscode-github-actions-0.27.0/dist/server-node.js:2:2874871 {
  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.0) octokit-rest.js/19.0.7 octokit-core.js/4.1.0 Node.js/20.16.0 (darwin; arm64)',
      authorization: 'token [REDACTED]'
    },
    request: { hook: [Function: bound bound e] }
  }
}
[Error - 10:04:44 AM] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: fetch failed
  Code: -32603

I tried following the advice in https://github.com/github/vscode-github-actions/issues/282, but that did not help. However, after disabling GitHub Actions, restarting Extensions and enabling GitHub Actions, I got this similar error in the OUTPUT (only differences posted):

Failure to retrieve username:  Ls [HttpError]: fetch failed
    .
    .
    at async _n (/Users/user/.vscode/extensions/github.vscode-github-actions-0.27.0/dist/server-node.js:2:2763253) {
    .
    .
}
[Error - 10:10:37 AM] Unhandled error while validating: fetch failed

Additional context
macOS Sonoma 14.7
The GitHub Actions activity bar icon works fine

主要言語
TypeScript
スター
661
フォーク
214
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

github/vscode-github-actions のほかの issue

github/vscode-github-actions の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。