I have a function similar to this:
repeat
local Success, Errormessage = pcall(function()
SMUsersOnline:UpdateAsync('UsersOnline',
function(UsersOnline)
--> some script
return UsersOnline
end,
60*60*24
)
end)
if not Success then
print("Error SMUsersOnline:UpdateAsync. Trying again.")
warn(Errormessage)
wait(1)
end
until Success
This function runs 1 time per second inside RunService.Heartbeat
.
I’m in development and, for now, only 1 player (me) is running the game, so there’s only 1 request per second.
For several weeks now, I’ve been noticing a lot of “Request Failed” errors occur, at varying times:
(Note: Before anyone says this error is occurring because I’m hitting Memory Store limits, please check out the documentation).