I’m making an in-game store with the developer products and gamepasses of my game in it, but when I try to get the product info of the developer product, it returns
MarketplaceService:getProductInfo() failed because HTTP 400 (Bad Request) - Client - ImageScript:19
The product info of my gamepass loads though
Here’s the script
local IDs = {
["RunSpeed"] = 144001112,
["SummonPurge"] = 20870828
}
local ProductTypes = {
["RunSpeed"] = Enum.InfoType.GamePass,
["SummonPurge"] = Enum.InfoType.Product
}
local Market = game:GetService("MarketplaceService")
local Children = script.Parent:GetChildren()
for e, child in ipairs(Children) do
if not child:IsA("ImageButton") then
continue
else
local ChosenID = IDs[child.Name]
local ProductType = ProductTypes[child.Name]
print(ChosenID)
print(ProductType)
local Info = Market:GetProductInfo(ChosenID, ProductType)
local Icon = Info.IconImageAssetId
child.Image = "rbxassetid://" .. Icon
end
end
I tried using pcalls, it kept returning false and I couldn’t find any relevant posts to help