github / github/vscode-github-actions

Error getting GitHub context fetch failed HttpError: fetch failed

Đang mở
#282 4 bình luận 4 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
TypeScript
Star
660
Fork
213
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

**Describe the bug**
The GitHub Actions extension is reporting this error message:

![Screenshot 2023-12-06 084828](https://github.com/github/vscode-github-actions/assets/10775668/d15aaabf-a113-42b8-a975-ebdbb554d449)

In the Output window the following messages are shown:
```
Error getting GitHub context
fetch failed
HttpError: fetch failed
at c:\Users\xxx\.vscode\extensions\github.vscode-github-actions-0.26.2\dist\extension-node.js:2:1366802
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async c:\Users\xxx\.vscode\extensions\github.vscode-github-actions-0.26.2\dist\extension-node.js:2:1447997
at async Object.get (c:\Users\xxx\.vscode\extensions\github.vscode-github-actions-0.26.2\dist\extension-node.js:2:1447724)
at async Lt (c:\Users\xxx\.vscode\extensions\github.vscode-github-actions-0.26.2\dist\extension-node.js:2:1447916)
at async c:\Users\xxx\.vscode\extensions\github.vscode-github-actions-0.26.2\dist\extension-node.js:2:1626346
at async i.h (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:125:139661)

Cannot fetch github context
Error: Cannot fetch github context
at vt (c:\Users\xxx\.vscode\extensions\github.vscode-github-actions-0.26.2\dist\extension-node.js:2:1444927)
at async c:\Users\xxx\.vscode\extensions\github.vscode-github-actions-0.26.2\dist\extension-node.js:2:1626446
at async i.h (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:125:139661)

```

**To Reproduce**
Steps to reproduce the behavior:
1. Open VSCode. See GitHub Actions Output
2. Click refresh button on extension. Same error is logged

**Expected behavior**
No error message is shown

**Screenshots**
See above.

**Extension Version**
`0.26.2`

**Additional context**
I have seen issues https://github.com/github/vscode-github-actions/issues/77 and https://github.com/github/vscode-github-actions/issues/251.

I followed the instructions at https://github.com/github/vscode-github-actions/issues/77#issuecomment-1503960028 but the problem is still unresolved.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Reproduce the failure by opening VS Code and refreshing the GitHub Actions extension, then inspect the GitHub context fetch errors in the Output window. Compare the behavior with issues #77 and #251; done means the reported fetch failure no longer appears for the affected extension version.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
typescript
Lĩnh vực
devtools
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.