Checking if user is friended results in HTTP unknown error (HTTP error: DnsResolve)

I have made custom player list. It works well for me, but one of my testers, which has bad internet connection, is granted with this error.


(Sory for quality)
Error which worries me the most is HTTP unknown error (HTTP error: DnsResolve)
That’s the line on which it occurs:

local function PlayerAdded(Object:Player)
		if Object == Player then return end
		local PlayerInfo = typeof(Object) == "table" and Object or Remotes.InventoryFunction:InvokeServer("GetPlayerData", Object)
		if typeof(Object) ~= "table" then
			--LINE OF THE ERROR BELOW
> > > > > >	if Player:IsFriendsWith(Object.UserId) then 
			--LINE OF THE ERROR ABOVE
				table.insert(PlayerInfo.Status, "Friend")
			end
			if table.find(StarterGui:GetCore("GetBlockedUserIds"), Object.UserId) then
				table.insert(PlayerInfo.Status, "Blocked")
			end
			if Object.MembershipType == Enum.MembershipType.Premium then
				table.insert(PlayerInfo.Status, "RobloxPremium")
			end
			if Object.HasVerifiedBadge then
				table.insert(PlayerInfo.Status, "Verified")
			end
		end
...to be continued...

Why it occurs, and what I can do to fix it, if I can? It breaks player list completely for bad-wifi users.

1 Like