aboutcode-org / aboutcode-org/vulnerablecode

Github importer failure

Đang mở
#583 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug Data collection Priority: medium tracing-and-logging
Ngôn ngữ chính
Python
Star
702
Fork
328
Merge trung bình
3 ngày 8 giờ
Pull request đã merge (30 ngày)
3

Mô tả

After running the github import with GH_TOKEN set I get
```
❯ python manage.py import github
Importing data from github
Traceback (most recent call last):
File "/home/shivam/work/vulnerablecode/vulnerabilities/management/commands/import.py", line 110, in _import_data
ImportRunner(importer, batch_size).run(cutoff_date=cutoff_date)
File "/home/shivam/work/vulnerablecode/vulnerabilities/import_runner.py", line 89, in run
process_advisories(data_source)
File "/usr/lib/python3.9/contextlib.py", line 79, in inner
return func(*args, **kwds)
File "/home/shivam/work/vulnerablecode/vulnerabilities/import_runner.py", line 116, in process_advisories
advisory_batches = chain(data_source.updated_advisories(), data_source.added_advisories())
File "/home/shivam/work/vulnerablecode/vulnerabilities/importers/github.py", line 178, in updated_advisories
return self.batch_advisories(self.process_response())
File "/home/shivam/work/vulnerablecode/vulnerabilities/importers/github.py", line 258, in process_response
self.set_version_api(ecosystem)
File "/home/shivam/work/vulnerablecode/vulnerabilities/importers/github.py", line 213, in set_version_api
self.set_api(self.collect_packages(ecosystem))
File "/home/shivam/work/vulnerablecode/vulnerabilities/importers/github.py", line 175, in set_api
asyncio.run(self.version_api.load_api(packages))
File "/usr/lib/python3.9/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
return future.result()
File "/home/shivam/work/vulnerablecode/vulnerabilities/package_managers.py", line 74, in load_api
await asyncio.gather(
File "/home/shivam/work/vulnerablecode/vulnerabilities/package_managers.py", line 313, in fetch
resp = await session.request(method="GET", url=endpoint)
File "/home/shivam/work/vulnerablecode/venv/lib/python3.9/site-packages/aiohttp/client.py", line 625, in _request
resp.raise_for_status()
File "/home/shivam/work/vulnerablecode/venv/lib/python3.9/site-packages/aiohttp/client_reqrep.py", line 1000, in raise_for_status
raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 404, message='Not Found', url=URL('https://api.nuget.org/v3/registration5-semver1/github.com/beego/beego/v2/nuget/index.json')
Failure to import data from github. Continuing...
CommandError: 1 failed!: github

```

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

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

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.