GetFailedUrls returns expanded URLs

game:GetService("ContentProvider"):PreloadAsync({"rbxassetid://1"})
print(game:GetService("ContentProvider"):GetFailedUrls()[1])
--> https://assetgame.roblox.com/asset/?id=1

GetFailedUrls should return the original URL given to Preload, so that it is easier to match which URLs failed to load.

2 Likes

This API is LocalUserSecurity only which means that it is intended for debugging/internal use only and is not an API designed for developers (though they might find it useful for debugging in some cases).

The internal use case for this API uses the full URLs so this is unlikely to be changed.

1 Like

GetFailedUrls will disappear at some point anyway.

I see, I didn’t notice the tag. In that case, what is the recommended means for detecting when a URL has failed to load?

I’m not sure there is any, this is probably possibly by parsing error messages in LogService but I’m not sure there is a good way to do it.