You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
get_cargo_versions_from_purl fails in case of no response #138
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.
@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?
Activity
Rajeshwari2857 commentedon Oct 24, 2026
Hi, I’m investigating this issue and have pushed a tentative change on my branch.
Currently,
get_cargo_versions_from_purl()assumes thatget_response()returns a dictionary and callsresponse.get("versions"). I added a guard to return no versions when the response is falsy, along with a regression test for aNoneresponse. 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!
pombredanne commentedon Nov 4, 2026
@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?