vmware-labs / marketplace-cli

A CLI for interacting with the VMware Marketplace
Other
11 stars 2 forks source link

Requesting a product with 0 results will hang #62

Closed petewall closed 3 years ago

petewall commented 3 years ago

I’ve encountered a strange bug. When requesting the list of products for a user in an org with no products, I get an empty list (as expected), but the params object tells me that there are 40 items:

GET https://gtw.marketplace.cloud.vmware.com/api/v1/products?managed=true&pagination={%22page%22:1,%22pageSize%22:20}
  "response": {
    "dataList": [],
    "message": "Successfully fetched products",
    "statuscode": 200,
    "params": {
      "search": "",
      "pagination": {
        "page": 1,
        "pagesize": 20,
        "enable": false
      },
      "sortingList": [],
      "filters": {
        "textfiltersList": [],
        "intfiltersList": [],
        "boolfiltersList": [],
        "solutionmetafiltersList": [],
        "datefiltersList": []
      },
      "itemsnumber": 40,
      "selectList": []
    },
    "availablefilters": {
      "textfiltersList": [],
      "intfiltersList": [],
      "boolfiltersList": [],
      "solutionmetafiltersList": [],
      "solutiontypefiltersList": [],
      "datefiltersList": []
    }
  }
}