grishka / Houseclub

A barebones unofficial Android app for Clubhouse
The Unlicense
2.36k stars 398 forks source link

get_followers and get_following max out at 400 users #313

Closed transitive-bullshit closed 3 years ago

transitive-bullshit commented 3 years ago

I'm the author of https://github.com/transitive-bullshit/clubhouse, an open source TypeScript wrapper around the Clubhouse API.

I've taken a lot of inspiration from this repo; thank you so much @grishka for your amazing work 🙏 💕 🙏

Describe the bug

The API has a specific issue where /get_followers and /get_following only ever return up to 400 users, regardless of page_size and page. So if I set page_size to 50, I can get 10 pages but only ever access up to a total of 400 users.

To Reproduce

See related bug here: https://github.com/transitive-bullshit/clubhouse/issues/2 and my code implementation here: https://github.com/transitive-bullshit/clubhouse/blob/master/packages/clubhouse-client/src/clubhouse-client.ts#L289

Expected behavior

For users with more than 400 followers, we should be able to use the clubhouse API to access all of them in a paginated fashion, with pagination working past 400 users.

Context

Given your extensive use of the Clubhouse API, I figured that you've probably run into this limitation and I was wondering if you were able to work around it?

Thanks!

github-actions[bot] commented 3 years ago

@transitive-bullshit, this issue is being automatically closed because it does not follow the issue template.