AvatarEditorService:SearchCatalog() keeps returning bundles

About a month ago I made a script in my game to fetch catalog search results for classic clothing, only to return to it today, and find that half the results are (bodypart) bundles. So to be sure the error wasn’t elsewhere, I isolated this small chunk of code that is visible in the attachment below, and indeed, Roblox still is returning bundles despite only Pants and Shirts being requested. Is there any way to work around this?

1 Like

Seems like this could be a bug if it keeps occurring. I’d try just requesting shirts or pants 1 at a time and see if that causes it

For workarounds, you can either

  1. filter out items with the wrong type, can also request multiple pages if there isn’t enough data
  2. make request to catalog api directly instead of using that function

I found out shortly before you said it yeah, if you request them separately, then it works

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.