I've been encountering a problem while using Data Stores, and it's been bugging me for awhile now.
Whenever I call :GetAsync(),
it always returns with a
21:12:32.561 - 502: API Services rejected request with error: HTTP 0 (HTTP 403 (HTTP/1.1 403 Forbidden))
I've used DataStores before, and I'm actually baffled to see this happen, as I've never encountered this error.
For reference, this is a portion of the code. As mentioned before, I get an error each time I call GetAsync.
local DataStore = game:GetService("DataStoreService"):GetDataStore("Cheats") function loaddata(player) local key = "plrchts_"..player.userId local tosave = {} local data = DataStore:GetAsync(key) if data ~= nil then tosave = data end end
EXTRA NOTES:
If anyone can figure out what this means, it would be very much appreciated!
I believe this is what happens when you try to configure DataStores in a team create game that isn’t owned by you. It should only happen while you are in studio on that team create, and work fine for the owner of the team create and while you’re in the actual game. I’m assuming that this happens because of security, so someone you invite to edit your game can’t mess with players’ save information. Not sure about any way around it; you could always just test the saving in one of your own games and then translate it to the team create once it is working.