Misleading GetProductInfo error message

The following code gives the following error:
game.MarketplaceService:GetProductInfo(9999999999999, Enum.InfoType.Product)

RobloxStudioBeta_2016-10-22_11-27-02.png

The assetId isn’t less than 0 – it’s an ID that hasn’t been taken by a developer product yet. I caught this by accidentally inserting an extra digit onto a valid product ID and verified it by using a larger value. The easiest fix would just be to remove “(supplied assetId was less than 0)”.

This might be because the value you’ve given is larger than a positive signed 32-bit integer, so the issue here would be similar to what happens if you put a huge number in an IntValue - it wraps around to the negative side and becomes less than 0.

I don’t know what numbers you originally input to get the error, but I’d imagine it has something to do with that.

1 Like

This happens with an ID of 0 too, which is fun because it’s an outright lie. They should just remove the end part, like you said.

Salutations!
We are catching up on some historical topics. Can’t reproduce that message anymore.

Now the messages are:

  • “MarketplaceService::getProductInfo - GetDeveloperProductInfo failed: Item not found in batch response” for 9999999999999
  • “MarketplaceService:GetProductInfo() 0 is not a valid assetId” for 0

Thanks for understanding!
Have A Nice Day!