Skip to content

Multiple 404 errors while running flag_ghost_packages #2284

@Hritik14

Description

@Hritik14

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions