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

502: API Services rejected request with error. HTTP 0 (HTTP 429)?

ok everytime it sets the async for a data store it just does that how do i fix it

2 comments

0

This is an error that occurs when you're team creating a place you do not own.

0

im not team creating

1 answer

✓ Accepted answer

The error code you're seeing is 429 Too Many Requests. In the case of DataStores, this simply means that your game is trying to call SetAsync() (i.e. set a value asynchronously) too often, or generally tries to access DataStores too often. The reasons why this might be are many; you might be accidentally calling it too often in a for loop, or there might be a design flaw with your approach to implementing DataStore usage.

4 comments

0

i dont have a for loop

0

It's completely possible that the issue lies somewhere completely different, I only used for loops as an example. If you need help with debugging the issue, you could update your question with more details about how your code uses DataStores.

0

all they do is press a click detector once and its done

0

I just checked the Wiki, and it seems that you must allow 6 seconds between calls to SetAsync: https://developer.roblox.com/en-us/articles/Datastore-Errors

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