Skip to content

get_cargo_versions_from_purl fails in case of no response #138

Open

Description

@TG1999
No description provided.

Activity

  1. Rajeshwari2857 commented on Oct 24, 2026

    @Rajeshwari2857

    Hi, I’m investigating this issue and have pushed a tentative change on my branch.

    Currently, get_cargo_versions_from_purl() assumes that get_response() returns a dictionary and calls response.get("versions"). I added a guard to return no versions when the response is falsy, along with a regression test for a None response. The relevant tests pass.

    Could you clarify what kind of “no response” this issue refers to, and whether the expected behavior is to return no versions or propagate an error? I’d like to verify the intended behavior before opening a PR.

    Thank you!

  2. pombredanne commented on Nov 4, 2026

    @pombredanne
    Member

    @Rajeshwari2857 PR is much appreciated, but you do not test the actual direct problematic function, do you?
    Have you tried to test it by hand in the interpreter to better understand the issue, and what the no response means and which are the arguments that trigger it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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