Skip to content

Pypi - /api/collect/ fails to return scan data for Jinja2 package #602

Open
@chinyeungli

Description

@chinyeungli

The endpoint /api/collect/ successfully returns PyPI packages. However, the Jinja2 package is the only one, based on my checks so far, that produces an "Error: Bad Request." Upon investigation, the db_package is created correctly at https://github.com/aboutcode-org/purldb/blob/main/minecode/collectors/pypi.py#L89, but the failure occurs within the add_package_to_scan_queue() function. It's worth noting that the code performs as expected up to https://github.com/aboutcode-org/purldb/blob/main/minecode/model_utils.py#L60, where the uri does exist. However, the failure happens during the execution of ScannableURI.objects.get_or_create(...).

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