Rate limit hit | Help | JS

Hello Developers,

I hope you’re doing well.

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.

Could you reveal little bit of code and possibly add the image:

Sounds like some kind of loop, but idk, since I don’t have starting point.

It’s probably one of three things:

  1. You flooded Roblox servers with requests or otherwise didn’t abide by their API policy, so you got timed out.
  2. 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.
  3. 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.

you cant increase it just make a thread and add yields

hmmm

it possible number 2 but I will see

maybe

I made sure that it goes through once every 5 minutes.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.