[BUG] Follower API sometimes returns no followers

Hello everyone,

I have a worker that continuously fetches the followers of some users.
However sometimes the API returns 0 followers at the beginning, the middle, or end, but the next cursor still points to the user that’s 100 entries further away.

Example:

User has a total of 300 followers…

  1. Request: 100 followers fetched
  2. Request: 0 followers fetched
  3. Request 100 followers fetched
    End

The status code of the response is OK, so the header and other meta-data is not reliable.

Any ideas how to defend against these errors?

Best regards,

devvv

How frequently does this happen? Is it on a consistent user or many user? Is it always the middle request? Which user are you querying?

1 Like

How frequently does this happen?
I experience this about 3-5 times a day.

Is it on a consistent user or many user?
It is not on a single user. It happens on multiple users.
But: It didn’t happen on all users.
Another but: If it occurred on a specific user X, the effect was there for a long time.

Is it always the middle request?
No, it’s not always the middle request. I realized this after querying a bunch of users. An alternative request log looked like this.

User X had 4000 followers. So it takes 40 requests, returning 100 followers / request.

  1. Request: 100 followers fetched (Cursor set)
  2. Request: 100 followers fetched (No cursor set???)
    End

Which user are you querying?
Just a few of them are: 192188527, 176934358, 122181552, 93121714, 151828391

Thanks for taking your time, @Jack_Lindamood.

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