Greetings!
I’ve noticed that when a product doesn’t have an image, the CoreGui randomly throws format errors. The following snippet of code is what I’m doing to prompt the product purchase, and after that I’ll attach an image of the error.
local RobloxMarketService = game:GetService("MarketplaceService")
pcall(function()
RobloxMarketService:PromptProductPurchase(Player, Product)
end)
This is the error.
Copy & Paste
17:05:22.992 - Image “https://assetgame.roblox.com/thumbs/asset.ashx?assetid=0&x=100&y=100&format=png” failed to load in “CoreGui.PurchasePromptApp.PurchasePromptUI.PromptContents.PromptBody.ProductInfo.ItemPreviewImage.ItemPreviewImageContainer.ItemImage.Image”: Failed to resolve texture format | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 …(rbxopenprop://0%2E63918/Image)
When I attempt to prompt the purchase of product 974822753 this error occurs 90% of the time. This is just one of the places it occurs at. Normally, the error wouldn’t exist at all.
Thank you,