Marketplace::UserOwnsGamePassAsync: Parsed Invalid JSON. Data may be corrupted. Stack Begin Stack End
I started to get this error ever since I enabled studio access to API services. However, after editing in studio for a few minutes, the error seemed to go away but comes back after starting up my pc. It occurs in online servers and studio. Any solutions?
Script that checks if the player owns the game pass:
local MarketplaceService = game:GetService("MarketplaceService")
function HasGamePass(player)
if MarketplaceService:UserOwnsGamePassAsync(player.UserId, VIPsettings.ID) then
return true
else
return false
end
end

3 comments
Btw, 'VIPsettings' is in a module that includes gamepass ids
I am guessing this is a roblox studio or roblox bug. Most likely one of the gamepasses is unobtainable or has no given price. Honestly I have no clue
All the game passes are on sale