I’ve been working on a Discord bot that acts as a proxy of sorts. It fetches a table from Roblox, sends it to my bot, and checks if users are following the specified users in the table. If they are, they receive an item.
However, I’m encountering an issue where I get the following error in the console:
“Error fetching following data: { errors: [ { code: 0, message: ‘Too many requests’ } ] } Rate limit hit. Retrying in 32000ms…”
I’m using the Roblox API endpoint 'https://friends.roblox.com/v1/users/${followerId}/followings?sortOrder=Asc&limit=100', as shown in the attached image.
I’m trying to resolve this issue as soon as possible. Any assistance that someone can provide would be greatly appreciated.
You flooded Roblox servers with requests or otherwise didn’t abide by their API policy, so you got timed out.
The hosting service you’re using for your bot is too popular, and Roblox is receiving too many requests from similar programs hosted by the same service.
Roblox API hijinks. (The response for the API call is too big and it makes the API gods angwy.) ((unlikely but still possible, I’m not familiar with how the friends API works))
If it’s number 3, good luck. You can try hosting your bot on your local machine to see if it still replicates the issue, and I’d make sure the line making the API call isn’t being looped.