Marketplace Service Wrong Output Messages

If you prompt the purchase of an asset with an ID of 0, the error message says that you tried to check for something below 0, however, that was not the case.

MarketplaceService:PromptPurchase() second argument is not a valid assetId (supplied assetId was less than 0)

If you verify the ownership of an asset with an ID of 0, the error message says that you tried to check for something below 0, however, that was not the case.

Internal error while fetching asset type because MarketplaceService:GetProductInfo() argument is not a valid assetId (supplied assetId was less than 0)
1 Like

Thanks for the report! We’ve filed this internally and we’ll follow up here when we have an update for you.

2 Likes

I am in the process of checking over bug reports and following up on some bugs that haven’t received any activity in a while.
Is this issue still occurring or can you confirm that this bug has been resolved? We are having a hard time reproducing this issue.

I just tested it in studio and had the same error pop up.

game.Players.PlayerAdded:Connect(function (player)
	game:GetService("MarketplaceService"):PromptPurchase(player, 0)
end)

If you run this code snipped from a server script, the error message will appear:
MarketplaceService:PromptPurchase() second argument is not a valid assetId (supplied assetId was less than 0)

The incorrect part of the error is that is says the assetid was less than 0, but it was exactly 0 in the code

1 Like

Hi all,

I am getting the same message although it has been a year. Any possible solution soon? I got stuck at least an hour for nothing.

Thanks.

Stay Creative.