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:
- The place I'm testing in uses Team Create.
- API services are enabled.
If anyone can figure out what this means, it would be very much appreciated!
