Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

collect/ endpoint query for conan PURL with non-existent version returns 'Server Error (500)' #532

Open
johnmhoran opened this issue Aug 20, 2024 · 0 comments
Labels
bug Something isn't working data

Comments

@johnmhoran
Copy link
Contributor

Using the local collect/ endpoint to populate my local DB, if I search for a conan type with a version that does not exist, I get a Server Error (500). This does not happen with at least some of the other supported types in the CollectViewSet() class list.

  • For example, according to the ConanCenter, the only version of alpaca is 0.2.1, and a query for 0.3.0 (/api/collect/?purl=pkg:conan/[email protected]) throws the error.

  • OTOH, NPM tells me the latest version for log4j is 6.9.1, and a query for 7.0.0 (/api/collect/?purl=pkg:npm/[email protected]) returns a JSON object informing me that the package does not exist.

GET /api/collect/?purl=pkg:npm/[email protected]

HTTP 400 Bad Request
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "status": "error(s) occurred when fetching metadata for pkg:npm/[email protected]: Package does not exist on npmjs: pkg:npm/[email protected]"
}
  • Similar result for the MVN Repository, which tells me the latest version of Jackson Databind is 2.17.2 and responds to a collect/ query for 2.20.0 with
HTTP 400 Bad Request
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "status": "error(s) occurred when fetching metadata for pkg:maven/com.fasterxml.jackson.core/[email protected]: Package does not exist on maven: pkg:maven/com.fasterxml.jackson.core/[email protected]\nPackage does not exist on maven: pkg:maven/com.fasterxml.jackson.core/[email protected]?classifier=sources\n"
}
@johnmhoran johnmhoran added bug Something isn't working data labels Aug 20, 2024
@johnmhoran johnmhoran changed the title collect/ endpoint query for conan PURL with non-existent version returns 'Server Error (500' collect/ endpoint query for conan PURL with non-existent version returns 'Server Error (500)' Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working data
Projects
None yet
Development

No branches or pull requests

1 participant