Bad error message when getting libraries bulk info using a missing charm name

Bug #1925065 reported by Facundo Batista
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snap Store Server
New
Undecided
Unassigned

Bug Description

$ curl -s -H 'Content-type: application/json' -d '
> [{"charm-name": "whatever, dude", "library-name": "ingress", "api": 0}]' \
> https://api.charmhub.io/v1/charm/libraries/bulk | jq .

{
  "error-list": [
    {
      "code": null,
      "message": "Items need to include 'lib-id' or 'package_id'"
    }
  ]
}

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.