MarketplaceService Error

function isAuthenticated(player) 
    return MarketplaceService:UserOwnsGamePassAsync(player.UserId, passId)   ---- Line 11
end

function Start(plr)
    game.ReplicatedStorage.RadioStuff.PlayerRadio:Clone().Parent = plr.Character
end

for i,v in pairs(game.Players:GetPlayers()) do
    if isAuthenticated(v) then   --- Line 324
	   Start(v)
    end
end

Above is my code for a Radio gamepass. For some reason I get this error: image

The code has worked in the past and I am confused how it is randomly causing this error.

2 Likes

I’m also receiving the same error

2 Likes

Same here, my entire game just stopped functioning because of this. Forgot to wrap it in a pcall :smile:

1 Like

You should use pcall on this, and this can be the function:

function isAuthenticated(player) 
    local success,returning = pcall(function()
            return MarketplaceService:UserOwnsGamePassAsync(player.UserId, passId)
    end)
    return success and returning or false
end

if it doesn’t work, you may make one bug raport

2 Likes

I believe this is something on ROBLOX’s end. I doubt this is related, but some website functionality (such as certain user profiles as well as developer stats) are also currently nonfunctional for me.

3 Likes

same, we should make some bug raports, at me in all games (and empty baseplates made by me) I have much lag, and it errors me something like Black Frame is nil

1 Like

This is a good solution for now but currently there is a bug with the market system.

yes, i think there is a bug, you should make a bug raport.

1 Like

Someone had made a post about it.

1 Like

Woke up today to MarketplaceService and DataStoreService errors, now I’m noticing I’m not getting any information from Players either. Every time I test my player is named “unknown.”

image

2 Likes

Wrapping your code in a pcall when dealing with Marketplace Service is always a good idea, as stated by @TheTurtleMaster_2.

However, this is a Roblox Critical issue that is occuring right now. I suggest checking out the thread below for more information.

1 Like