Right now, there is certainly some instability on the servers.
My game is still in development and sometimes I got this error when running the script on Studio:
Request Failed
I’m getting the error “Request Failed” in a UpdateAsync operation of the MemoryService, where I’ve never had an error before:
local MemoryService = game:GetService("MemoryStoreService")
local SMUsersOnline = MemoryService:GetSortedMap("UsersOnline")
SMUsersOnline:UpdateAsync('UsersOnline',
function(UsersOnline)
--> some script
return UsersOnline
end,
60*60*24
)
As I said, it’s an error that appeared for the first time in months.
But still, it can happen again.
In this case, I ask.
- If I don’t do an error handling with
pcall
, what can happen during the game? - If using
pcall
what would be the best way to handle this MemoryService unavailability? Should I make a counter with retry to a limit?
Any suggestion?