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

What can I do to prevent API services from being rejected by the server?

Asked by 6 years ago

Until recently the datastore I had been using was giving me no issues. It wasn't until recently that every once in a while it would throw this error

https://gyazo.com/d16d4ed2a1fa4bb0b692a1495b2d1891

I've dug around but I haven't found anything on what this is or how I could fix it.

0
Are you using ROBLOX's API? Are you using a custom API? Can we see the code? Ethan_Waike 156 — 6y

1 answer

Log in to vote
0
Answered by
H4X0MSYT 536 Moderation Voter
6 years ago

This is a web error. There is nothing you can do to fix it.However, you can prevent if from halting your script. Putting api requests like datastore in a pcall() will stop it from yielding. pcall() is kind of like a fail-safe. If anything goes wrong inside it, it will stop executing the code, and carry on executing the next part of the script.

Ad

Answer this question