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

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

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.

1 comment

0

Are you using ROBLOX's API? Are you using a custom API? Can we see the code?

1 answer

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.

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