Problem 1
AvatarEditorService:SearchCatalog() returns results of the incorrect asset types in the following case (when searching for classic clothing):
local CSP = CatalogSearchParams.new()
CSP.AssetTypes = {Enum.AvatarAssetType.Shirt,Enum.AvatarAssetType.Pants,Enum.AvatarAssetType.TShirt}
for i,v in pairs(game:GetService('AvatarEditorService'):SearchCatalog(CSP):GetCurrentPage()) do
print(v.AssetType or v.BundleType)
end
Note: When specifying a SearchKeyword, the results are normal. This only seems to happen when no SearchKeyword is provided into CatalogSearchParams.
Expected behavior
The results being returned should be of AssetType Shirt, Pants or TShirt (classic clothing)
Actual behaviour
The results being returned are of mixed asset and bundle types
*Apologies, I think that this should’ve been marked as an Engine bug rather than a Studio bug. It is not letting me re-categorize for some reason
Problem 2
HTTP 400 (Bad Request) when searching for all Bundle Types
local CSP = CatalogSearchParams.new()
CSP.AssetTypes = {Enum.AvatarAssetType.HairAccessory}
CSP.BundleTypes = Enum.BundleType:GetEnumItems()
local Pages = game:GetService('AvatarEditorService'):SearchCatalog(CSP) // Error: HTTP 400 (Bad Request)