So I am having this issue with RequestAsync. I Keep getting the error called HttpError: ConnectFail and I have no clue why this is happening. Please help! I really have no Idea on where to move on from here
local HttpService = game:GetService("HttpService")
local request = {}
request.Method = "POST"
request.Url = "http://URL/api/user/message/247964/"
request.Headers = {}
request.Headers["Content-Type"] = "application/x-www-form-urlencoded"
request.Headers["Token"] = "TOKEN"
request.Body = HttpService:JSONEncode({subject="roblox",body="studio"})
local response = HttpService:RequestAsync(request)
-- Inspect the response table
if response.Success then
print("Status code: " .. response.StatusCode .. " " .. response.StatusMessage)
print("Response body:\n" .. response.Body)
else
print("The request failed: " .. response.StatusCode .. " " .. response.StatusMessage)
end