GetProductInfo not working? HTTP not found

Hi I’m trying to get the name of the Gamepass so I would be able to run it as an event. I’m not sure why I’m encountering this issue though: " MarketplaceService:getProductInfo() failed because HTTP 404 (Not Found)"

My product IDs
image

image
Gamepass ID is ProductID

MarketPlaceService.PromptProductPurchaseFinished:Connect(function(player, id, success)
	if success and id == ProductID then
		print(id)
		local success, ProductInfo = pcall(function()
			MarketPlaceService:GetProductInfo(ProductID, Enum.InfoType.GamePass)
		end)
		print(ProductInfo)
	end
end)

MarketPlaceService.PromptGamePassPurchaseFinished:Connect(function(player, id, success)
	if success and id == ProductID then
		local success, ProductInfo = pcall(function()
			MarketPlaceService:GetProductInfo(ProductID, Enum.InfoType.GamePass)
		end)
		print(ProductInfo)
	end
end)

Are you sure the products are a gamepass? It could be a developer product. Also I am pretty sure there is a command called :GetGamePassInfo or something along those lines

I’m so dumb. I just realised that the infotype was gamepass instead of product. Thank you

1 Like

Haha no worries. Mistakes happen. Glad to help!!

1 Like

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