:GetProductInfo not working on developer product

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

Solved, turns out the creations site gives a different ID and I got confused

Kind of unrelated but I’m trying to upload a new image for the developer product icon and it won’t upload, it stays the same

1 Like

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