"502: API Services rejected request with error. HTTP 403 (Forbidden)"

“502: API Services rejected request with error. HTTP 403 (Forbidden)”
I’m getting this error when I try to use Datastores.
I own the group that has Team Create and API Services are enabled.

3 Likes

Did you enable API service from configure game page too?

2 Likes

Its enabled on the configure game page.

1 Like

Can you show me the code?[30 characters]

1 Like

Another thing too, at which line does the error appear?

1 Like

Line 39 also gtg uh I will respond in the morning.

1 Like

Is it enabled in Studio in the Game Settings?

2 Likes

Basically it doesn’t find the player data in the data store, so it says that, try replace that piece of code with this:

local success, errormessage = pcall(function()
		data = datastorething:GetAsync(plr.UserId) or nil
	end)

Its most likely an error on roblox’s part,i got this error only once and it wiped my save,tried it again and it worked.