Multiple 404 errors while running `flag_ghost_packages`
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 42/100
- Issue 類型
- 缺陷
- 描述清晰度
- 需要釐清
- 活躍度
- 冷清
- 技術堆疊
- python
研究方向
從 vulnerabilities/pipelines/v2_improvers/flag_ghost_packages.py 開始,尤其是 get_versions,並追蹤其對 fetchcode/package_versions.py 的呼叫。針對所示的 Composer 套件重現 flag_ghost_packages pipeline,並確定對 404 的預期處理方式。Done 應防止預期的缺少套件回應淹沒 logs,同時保留真正的 fetch 錯誤。
由索引模型根據 Issue 內容生成。
描述
Logs are flooded with following errors
INFO 2026-04-28 08:45:12.951284 UTC Pipeline [FlagGhostPackagePipeline] starting
INFO 2026-04-28 08:45:12.951412 UTC Step [flag_ghost_packages] starting
Error while fetching 'https://repo.packagist.org/p2/akaunting/akaunting.json': 404
HTTP error occurred: 404 Client Error: Not Found for url: https://repo.packagist.org/p2/akaunting/akaunting.json
Traceback (most recent call last):
File "/home/ubuntu/vulnerablecode/venv/lib/python3.12/site-packages/fetchcode/package_versions.py", line 519, in get_response
resp.raise_for_status()
File "/home/ubuntu/vulnerablecode/venv/lib/python3.12/site-packages/requests/models.py", line 1026, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://repo.packagist.org/p2/akaunting/akaunting.json
ERROR 2026-04-28 08:45:17.860641 UTC Error while fetching known versions for pkg:composer/akaunting/akaunting: HTTPError('404 Client Error: Not Found for url: https://repo.packagist.org/p2/akaunting/akaunting.json')
Traceback (most recent call last):
File "/home/ubuntu/vulnerablecode/vulnerabilities/pipelines/v2_improvers/flag_ghost_packages.py", line 97, in get_versions
return {v.value.lstrip("vV") for v in versions(str(purl))}
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/vulnerablecode/venv/lib/python3.12/site-packages/fetchcode/package_versions.py", line 244, in get_composer_versions_from_purl
- 主要語言
- Python
- 星號
- 716
- 分支
- 347
- 平均合併
- 13 小時 47 分鐘
- 30 天內合併 PR
- 8
環境準備
- 提供 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 沒有貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
aboutcode-org/vulnerablecode 的其他 Issue
-
OSV parser drops all crates.io affected entries because the ecosystem mapping uses cargo可能已有人在做 @Ashutosh-Panda2004 於 5 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 76/100
aboutcode-org/vulnerablecode#2485 · 1 則留言 ·
維護者通常 1 天內回覆
-
Docker Compose setup fails on wait-for-it host web:8000 and missing runtime .env可能已有人在做 @Anurag-S1ngh 於 9 天前認領。 未關閉
難度 2/5 半天 新手友好度 77/100
aboutcode-org/vulnerablecode#2477 · 1 則留言 ·
維護者通常 1 天內回覆
-
OVAL parser corrupts version bounds when the epoch is 10, 20 or the version contains "0:"可能已有人在做 @Ashutosh-Panda2004 於 7 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 76/100
aboutcode-org/vulnerablecode#2474 · 1 則留言 ·
維護者通常 1 天內回覆
-
Docker build fails on Apple Silicon (arm64) — only x86_64 wheels pinned for extractcode-7z, extractcode-libarchive, typecode-libmagic可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉
難度 2/5 1-3 小時 新手友好度 86/100
aboutcode-org/vulnerablecode#2426 ·
維護者通常 1 天內回覆
-
Get NuGet package versions from federated PURL version data in https://github.com/aboutcode-data/可能重新可做 @Anshi321 於 28 天前認領,目前沒有進行中的 PR。 未關閉bug data-quality
難度 2/5 1-3 小時 新手友好度 72/100
aboutcode-org/vulnerablecode#2418 · 4 則留言 ·
維護者通常 1 天內回覆
查看 aboutcode-org/vulnerablecode 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 72/100
pytest-dev/pyfakefs#1367 · 1 則留言 ·
維護者通常 2 天內回覆
-
IFEvalG exclude_word_harder misses the keyword next to punctuation, at the start or end of the text, and in other letter case可能已有人在做 @damienen 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 76/100
allenai/open-instruct#2151 ·
維護者通常 1 天內回覆
-
feat(plan): support convertorLabels and convertorAffinity in Plan resource可能已有人在做 @AmenB 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 82/100
RedHatQE/openshift-python-wrapper#2849 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 65/100
維護者通常 25 天內回覆
-
難度 2/5 1-3 小時 新手友好度 70/100
libnativeapi/nativeapi#21 ·