-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Moderation API for Banned users: can't get all banned users #18
Comments
|
HLX-1337 ;) |
|
At the moment it is just a broken API endpoint and it has been for the last half a year. I am still waiting for it to get fixed. This should have been tested and evaluated in the development before shipping it out tbh. It is such an easy and obvious bug to catch. |
|
Tested today Still broken Cursor is display in this output Can't get beyond 200 users and it gets stuck in a loop Using a limit/first of 50, I get 200 users and it loops till page 41 where it 500's |
|
Is there any chance this will be fixed soon? Has been open for over 13 months now |
|
I really am hoping that they will reopen this since currently trying to pull all bans is sorta impossible.... |
|
This issue is still open btw. Linked issues are closed. but this one still open |
|
okay cool |
|
How does you code get around the problem? And all your code does is load all the bans from the API? |
|
My apologies, I misread which issue this was (I thought this was the issue regarding duplicates when fetching the last set). Deleted my comment |
|
The issue is that you keep getting the same duplicate page from ban 200 onwards, so you cannot obtain all bans for a channel. |
|
Yep, I see that now. The issue my code worked around was even when you have fewer than 200 pages (say 20), you'll get duplicates between the second-to-last and last page (unless you have an even multiple of $pagesize bans), then you'll get the last page repeatedly. Different but related issue. |
|
At 100 bans per page, I can't get past page 2. |
|
Misread your comment; seems I'm a bit hazy today. I initially hit the issue using the default page size (20 IIRC), then later increased my page size to 100, and the largest streamer currently using my app has 114 bans, so I unfortunately (fortunately?) haven't hit that 200 threshold yet. |
|
Well as I stated in my original post (https://discuss.dev.twitch.tv/t/bug-moderation-api-for-banned-users-is-bugged/23483) about this issue, soon to be 2 years ago and still not solved btw(!!!), you can get up to 1170 unique bans if you only query 3 at a time and use the cursors from that. I didnt bother to check the number for 1 at a time. I tested it on a large channel with a lot of bans. But thats just not a solution, Twitch pls fix! |
|
This seems to be resolved as of Friday. If others can test/confirm? |
|
Works for me on a channel with about 7300 bans now that previously failed like above. |
|
Still broken for me, I get 4587 users in 46 pages then next response is just "data: [], pagination: {}" I know that the response is incomplete because it's missing some users that I manually banned. |
The API/Service won't return record(s) for users that no longer exist on the platform. I anticipate the people you think are missing, their accounts not longer exist, having been reported and had the accounts terminated |
|
The banned users are still active so they should appear in the output. |
You mean by Twitch or using someone elses tool? As if it's Twitch "automated removal" then those users probably won't be in API outputs. |
|
There are bots that automatically ban accounts that are known to be spam/bot accounts. |
|
Do the "manually" banned accounts show up as banned if you do |
yes |
Ah. I bet the API can only reliably go back to like august 2014~ish? I forget the specific date but there is a "default" date in the |
No, the bans I'm looking for are from march of this year. |
|
Curses.... I'll have a deeper look at my Pull and run a compare if I get time. And still broken. But progress. Most of my usage usually involves a "see if x is banned" rather than needing the full list. But still |
|
can confirm, getting full list doesn't work, for me it stops after about 6135 names. if i unban some i get a partially different list with similar length |
|
Somehow the original ticket was marked as solved, but I've reopened and we are actively investigating |


Brief description
The API doesn't let me fetch ALL banned/timed out users for a channel
How to reproduce
User this script with a valid broadcaster oAuth and the relevant broadcaster/user ID
Additionally page 2 thru 10 are identical
Expected behavior
Page 1 has 100 users 100
Page 2 has 100 users 200
Page 3 has 100 users 300
Page 4 has 100 users 400
and so on till all banned users are fetched
Additional context or questions
Original Post: https://discuss.dev.twitch.tv/t/bug-moderation-api-for-banned-users-is-bugged/23483
The text was updated successfully, but these errors were encountered: