Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

how to solve 502: API Services rejected request with error. HTTP 403 (Forbidden) ?

Ok so i'm developing server and scripts alone and when i finished my Admin panel script and lauched my game i got this as error:

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

That's because of this line :

	if player.Name == AdminData:GetAsync(player.UserId) then

i have two lines connected with

AdminData = DSS:GetDataStore("Admin")

local Admin = {}

I really need to fix it cause that's a part of the function that let me use the panel, without all buttons are just a waste of time if u coold help me please answer ^^

(ps: it s possible that i have forgetted a Remote Event or something else in the Data

Thak's to all people that will help me ! :)

1 comment

0

try user.Id without a capital U

2 answers

✓ Accepted answer

There's usually 2 errors that occur because of this:

> API is disabled in your game's settings

> Your trying to use DataStore's on team create, possibly wont work because you don't own the place.

your code looks fine, so I don't really see a problem there, either its ROBLOX or one of the two points I gave that it errors on.

3 comments

0

i turned on the teamcreate but i own the place cause actually i created the serv and i m the only one who work on

0

ho i forgotted api i m gonna try back

0

I m so gratefull thanks a lot but rn i got an other problem, i got ban from my own serv cause of a command i tried xD idk how to solve that but thanks a lot

Try this maybe and use pcall to make function still run on errror

AdminData = DSS:GetOrderedDataStore("Admin")

local Admin = {}

This discussion is preserved as it was. New answers, comments, and votes are closed.