What do you want to achieve?
i want to send RequestAsync ( Post ) Faster or at least with a fixed Delay ( 5s - 30s )
What is the issue?
It takes about 1 - 3 minutes to send my data ( 30s - 5m sometimes )
Some tests and images on the problem
I did not change anything in the script except the message in the print
( First Line is Before and Second is After )
What solutions have you tried so far?
Tried to Search Google and the dev forum but only found one Topic ( DevFourm ) without Any solution
More Info
Hi , i’m using MongoDb ( A cloud database ) to send and read data from roblox
Yes i’m sure the problem isn’t from MongoDb or from my code or my internet Because i have tried to send the same data with the same code ( almost ) in another way
local ejson_Body = HttpService:JSONEncode(db_info)
local Before = "Beffore Sending Data [ "..DateTime.now():FormatLocalTime("hh:mm:ss","en-us").." ]"
local Test -- Ignore
-- Ignore ↓ ( responseJsonString ) these are just for debugging
local responseJsonString, success, errorMessage = pcall(function()
Test = HttpService:RequestAsync({
Url=url,
Method="POST",
Headers={
["apiKey"]= apiKey,
["Content-Type"]= "application/ejson",
["Accept"]= "application/json",
},
Body=ejson_Body,
})
end)
local After = "After Sending Data [ "..DateTime.now():FormatLocalTime("hh:mm:ss","en-us").." ]"
warn("1 ) "..Before)
warn("2 ) "..After)
I really hope anyone knows how to fix this , thanks in advance and sorry if there is any grammatical error