Help with HTTPS requests

I would like to find the join date of a user, even if they are not in-game.
this is the code.

local http = game:GetService("HttpService")
local UserService = game:GetService("Players")
local Channel = "https://discord.com/api/webhooks/XXXX"
local Data = {}
local Player
local UserId = 1916597735
local Age
while true do
	Player = UserService:GetNameFromUserIdAsync(UserId)
	Age = http:GetAsync("https://users.rprxy.xyz/v1/users/" .. UserId)
	Data = {
	["content"] =
			[[Age]]..Age
	}
Data = http:JSONEncode(Data)

http:PostAsync(Channel, Data)
	wait(120)
	UserId = UserId + 1
end

it returns "HTTP 429 (Too Many Requests), anyone know a fix?

1 Like

The API seems to be down at the moment, since it is occurring to me as well when I try to fetch this endpoint. Try again after a few hours, or so, it all depends on how long they take to fix it.

1 Like

my discord logs are all working perfectly fine right now

thanks, will do.

(I will mark as solution if it works)

Hmm, strange, does his data formatting look any different from the one you have?

I was trying to use the Roblox API then publish to discord, when i only use discord it works fine.

1 Like

image

This seems to be horribly formatted, I am guessing it should be:

["content"] =
		["age"] = Age
}

your discord account will be deleted if you make your discord webhook as a log system

-somebody

1 Like
local http = game:GetService("HttpService")
local UserService = game:GetService("Players")
local Channel = "https://discord.com/api/webhooks/8529XXXXXXXXXXXXX/XXXXXXXXXXXXXXXXXXXXX"
local Data = {}
local Player
local UserId = 1916597735
local Age
while true do
	Player = UserService:GetNameFromUserIdAsync(UserId)
	Age = http:GetAsync("https://users.rprxy.xyz/v1/users/" .. UserId)
	Data = {
	["content"] =
			[[Age]]..Age
	}
Data = http:JSONEncode(Data)

http:PostAsync(Channel, Data)
	wait(120)
	UserId = UserId + 1
end

Please remove the webhook URL, people can spam the webhook

I have done that because it used to have multiple lines, (wanted a readout on people caught by anticheat lol) and I just forgot to reformat it.

oops lol, forgot about that. thanks for the reminder.

I think it’s because of the loop, try this:

local http = game:GetService("HttpService")
local UserService = game:GetService("Players")
local Channel = "https://discord.com/api/webhooks/XXXX"
local Data = {}
local Player
local UserId = 1916597735
local Age
while wait(10) do
	Player = UserService:GetNameFromUserIdAsync(UserId)
	Age = http:GetAsync("https://users.rprxy.xyz/v1/users/" .. UserId)
	Data = {
	["content"] =
			[[Age]]..Age
	}
Data = http:JSONEncode(Data)

http:PostAsync(Channel, Data)
end

It’s not coming from the loop, the proxy itself is down and is returning the message
image

Wait no, there’s an error with the website:

https://gyazo.com/57fa0eb73896f6bda5d27f5578ca7f61

https://gyazo.com/3b72373728c0f45e0ccb69fc6936c18a

yeah others are confirming its a roblos issue, thanks for the help!

No problem, good luck with your game! :slight_smile:

incorrect, you’ll be suspended if you are abusing the webhook and going over any specified limits.

1 Like

that’s what i mean