-- NinjoOnline -- local HTTPService = game:GetService("HttpService") local url = "" game:GetService("ScriptContext").Error:Connect(function(msg, stacktrace, scriptt) local Data = { ["username"] = "Error Monitor"; ["content"] = "```lua\n" .. msg .. "\n " .. stacktrace .. "```"; } Data = HTTPService:JSONEncode(Data) HTTPService:PostAsync(url, Data) -- ERROR HERE end)
I'm trying to monitor whatever errors come through my game, so I don't have to be in game or see the console to know what's breaking my game.
I removed the url so people can't spam my discord webhook.
Error is on line 12
HTTP 403(HTTP/1.1 403 Forbidden)
This error is repeated a bunch, until eventually it changes to
Number of requests exceeding limit
Error is still on line 12
Is there a better way to do this to?
I believe Discord blocked Roblox from accessing it's APIs. The 403 error is telling you that the server is saying what you are trying to do is forbidden, and the second error is Roblox saying you have sent to many requests in a short amount of time. The only way to get past this is with your own API forwarding your requests. I would also suggest you group your information up and send all the errors every minute to two minutes to make sure you don't get the second error. Check out this for a tutorial on .NET rest APIs.