DataStores: Give Better Developer Feedback than "Request Rejected"

Debugging my DataStore code is hard.

I have a script in my level that just makes requests on a loop. Sometimes they fail. Other times they work. I really don’t know why or how to fix it. If I am hitting a request quota, I would like to know. If I am making a call that I am not authorized to make because of my PlaceID or not being logged in, I would like to know. If the DataStore backend is swamped, I would like to know.

blob.png

8 Likes

Perhaps do something along the lines of

Continue = false
pcall(function()
–data store stuff
Continue = true
end)

He’s asking not about how to make code not error, he’s asking about what is going on in data stores to make it fail.

1 Like

Oh whoopsies.
Regardless, you should always be prepared when data stores fail.

1 Like

DataStores use Amazon Web Services.
I’m pretty sure that is a legitimate response from their servers.

I’m getting this error in my game as well but not sure what’s wrong with the request. I have it tucked behind a pcall, but I do spit out a warning for DS errors accompanied by the key and value I’m trying to set it to. For an Ordered DataStore in online mode, these are the errors I’m getting:

147438786 3 Request Rejected
UserId(key), Value, Error Message
(Would be triggered by ODS:SetAsync(147438786, 3))

I get about one of these errors every 2 minutes – I’m not getting any other DS errors.

I was noticing a couple of these today too, could this be related to the general instability the site was experiencing?