HttpError: DnsResolve issue

Hey there,
So I’ve been trying to make a ’ live group members count’, and I somehow keep getting this error :
image

Code:

--Services
local Replicated = game:GetService("ReplicatedStorage")
local Storage = game:GetService("ServerStorage")
local Lighting = game:GetService("Lighting")
local Market = game:GetService("MarketplaceService")
local Space = game:GetService("Workspace")

local MainFolder = workspace:FindFirstChild("Game")
local School = MainFolder:FindFirstChild("School"):FindFirstChild("School")

local Http = game:GetService("HttpService")
local GroupID = 9854805

local function GetGroupMembers(ID)
	local Link = "http://www.roproxy.tk/My/Groups.aspx?gid="..ID
	local html = Http:GetAsync(Link, true) -- issue occurs here
	local pattern = [[<div id="MemberCount">Members: %d+</div>]]
	local size = tonumber(html:match(pattern):match("%d+"))
	School.Decoration.Announcements.GroupBoard.Info.Members.SurfaceGui.TextLabel.Text = size 
	print(size)
	return size
end

spawn(function()
	while task.wait() do
		GetGroupMembers(GroupID)
	end
end)

1 Like

anyone knows what causes to that error? would be nice to know.

1 Like

I’ve read that already, didn’t really help that much.

I think it basically means www.roproxy.tk doesnt exist, so you have to find another proxy server.

Possibly yes, but sadly I am new to api and that topic [started today], so how would I find a new server?

I tried to use a diff proxy, returned me ‘doesnt exist’

https://groups.roblox.com/v1/groups/1
Use the available group API endpoint instead, the ‘memberCount’ field is what you’re looking for.

I tried, but it somehow returned to me ‘proxy is no longer available’

You can create your own proxy server with this:

1 Like

Thank you! @Forummer and @realmile , appreicate it!
I will def dive deeper into the topic and examinate it further!

By the way,
Is there an alternative way to replace the while loop with a sort of .Changed event for that proxy?

Because I always think that if I used too many while loops[ instead of .Changed etc], it’d take more memory and cause some issues

Unfortunately not, I’d slow it down to once per 5/10 seconds or so (depending on how responsive you need the live count to be).

Oh.
Yeah the delay doesnt matter for me here, so I could set it to 0.5 or 1 if needed.

Roblox provides an allowance of 500 HttpService requests per minute, a frequency of every 0.5 seconds would consume 120 (roughly a quarter) of those requests, which is fine but should be noted.

2 Likes

Oh. Thanks for that important note,

So if I wanted to have 10 proxy calls, would it cause issues?( performance or wont work properly)