Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to fix HTTP 403 error when firing datastores?

Asked by
Meqolo 78
6 years ago

I'm getting the following error on all my datastores: 20:56:54.240 - 502: API Services rejected request with error: HTTP 0 (HTTP 403 (HTTP/1.1 403 Forbidden))

Code: local DSS = game:GetService("DataStoreService") local MoneyDS = DSS:GetDataStore("Money")

game.Players.PlayerAdded:Connect(function(plr) local Money = MoneyDS:GetAsync(plr.Name..":".. plr.UserId) print(Money) if Money == nil then MoneyDS:SetAsync(plr.Name..":".. plr.UserId, 300) local money = Instance.new("NumberValue",game:GetService("ReplicatedStorage").Money) money.Value = 300 money.Name = plr.Name else local money = Instance.new("NumberValue",game:GetService("ReplicatedStorage").Money) money.Value = Money money.Name = plr.Name end end)

0
You need to enable api access in the place settings User#5423 17 — 6y
0
API Access is enabled Meqolo 78 — 6y
0
Do you have HTTPService enabled? User#7697 0 — 6y

Answer this question