What are these errors with UserOwnsGamePassAsync breaking scripts?
Case 1)
Error:
MarketPlace::UserOwnsGamePassAsync: Parsed invalid JSON: Adaptive Concurrency Limits Enforced. The server is temporarily unavailable due to high load. Please retry later.
Code:
for id, tbl in pairs(GamepassItems) do
if game.MarketplaceService:UserOwnsGamePassAsync(Player.UserId,id) then
AwardGamepassItems({id = id, Player = Player })
end
end
Case 2)
Error:
MarketPlace::UserOwnsGamePassAsync: Parsed invalid JSON: <html><body><h1>504 Gateway Time-out</h1>
The server didn't respond in time.
</body></html>
Code:
if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(Player.UserId, 211027784) then
customClothesPlayers[Player] = {}
if shirtId then
customClothesPlayers[Player]["Shirt"] = shirtId
end
if pantsId then
customClothesPlayers[Player]["Pants"] = pantsId
end
end