Hi !
The pagination of subscriber is broken with Helix API (it works with Kraken)
The bug started between 2019-06-26 05:00 and 2019-06-26 05:10 Europe/Paris timezone
On the first call, there is no issue
https://api.twitch.tv/helix/subscriptions?broadcaster_id=121445595&first=100
[…]
}
}
["pagination"]=>
array(1) {
["cursor"]=>
string(39) "eyJiIjpudWxsLCJhIjp7Ik9mZnNldCI6MTAwfX0"
}
}
but when I do this call to get
https://api.twitch.tv/helix/subscriptions?broadcaster_id=121445595&first=100&after=eyJiIjpudWxsLCJhIjp7Ik9mZnNldCI6MTAwfX0
Then I have a 500 - Internal Server Error
It perfectly worked since month.
HTTP 500 is “server screwed up try again later”
So Try again later.
I am however seeing the same issue at the time of writing
Yep but, the issue never happen on first page.
it only happen when i add the “after” parameter.
it started 7 hour ago.
Yup, as I’ve confirmed, I’m seeing the same issue.
We can’t do much about it until Twitch gets into the office later today.
Seems might be a issue with first=100 try first=90
(fine with 99 also)
thx it works !
there still is an issue, but its ok to me i managed it.
The issue :
- first page has 90 result as expected
- second page has 91 result instead of 90 max
That is weird I rechecked mine and with a 90 I get 91 on the first page… lovely
I do “if results is < limit stop paginating” myself so I didn’t notice it originally
Twitch has logged this for further investigation!
This issue should have been corrected around July 2. Please let us know if there are still scenarios that result in 500 errors.
I still keep a limit a 90 otherwise it fail sometimes
limit 100 :
string(76) "https://api.twitch.tv/helix/subscriptions?broadcaster_id=121445595&first=100"
string(122) "https://api.twitch.tv/helix/subscriptions?broadcaster_id=121445595&first=100&after=eyJiIjpudWxsLCJhIjp7Ik9mZnNldCI6MTAwfX0"
string(133) "https://api.twitch.tv/helix/subscriptions?broadcaster_id=121445595&first=100&after=eyJiIjp7Ik9mZnNldCI6MH0sImEiOnsiT2Zmc2V0IjoyMDB9fQ"
string(135) "https://api.twitch.tv/helix/subscriptions?broadcaster_id=121445595&first=100&after=eyJiIjp7Ik9mZnNldCI6MTAwfSwiYSI6eyJPZmZzZXQiOjMwMH19"
string(135) "https://api.twitch.tv/helix/subscriptions?broadcaster_id=121445595&first=100&after=eyJiIjp7Ik9mZnNldCI6MjAwfSwiYSI6eyJPZmZzZXQiOjQwMH19"
=> Error : 500
limit 99 :
string(75) "https://api.twitch.tv/helix/subscriptions?broadcaster_id=121445595&first=99"
string(120) "https://api.twitch.tv/helix/subscriptions?broadcaster_id=121445595&first=99&after=eyJiIjpudWxsLCJhIjp7Ik9mZnNldCI6OTl9fQ"
string(132) "https://api.twitch.tv/helix/subscriptions?broadcaster_id=121445595&first=99&after=eyJiIjp7Ik9mZnNldCI6MH0sImEiOnsiT2Zmc2V0IjoxOTh9fQ"
string(133) "https://api.twitch.tv/helix/subscriptions?broadcaster_id=121445595&first=99&after=eyJiIjp7Ik9mZnNldCI6OTl9LCJhIjp7Ik9mZnNldCI6Mjk3fX0"
string(134) "https://api.twitch.tv/helix/subscriptions?broadcaster_id=121445595&first=99&after=eyJiIjp7Ik9mZnNldCI6MTk4fSwiYSI6eyJPZmZzZXQiOjM5Nn19"
string(134) "https://api.twitch.tv/helix/subscriptions?broadcaster_id=121445595&first=99&after=eyJiIjp7Ik9mZnNldCI6Mjk3fSwiYSI6eyJPZmZzZXQiOjQ5NX19"
string(134) "https://api.twitch.tv/helix/subscriptions?broadcaster_id=121445595&first=99&after=eyJiIjp7Ik9mZnNldCI6Mzk2fSwiYSI6eyJPZmZzZXQiOjU5NH19"
=> Error : 500
limit 90 :
string(75) "https://api.twitch.tv/helix/subscriptions?broadcaster_id=121445595&first=90"
string(120) "https://api.twitch.tv/helix/subscriptions?broadcaster_id=121445595&first=90&after=eyJiIjpudWxsLCJhIjp7Ik9mZnNldCI6OTB9fQ"
string(132) "https://api.twitch.tv/helix/subscriptions?broadcaster_id=121445595&first=90&after=eyJiIjp7Ik9mZnNldCI6MH0sImEiOnsiT2Zmc2V0IjoxODB9fQ"
string(133) "https://api.twitch.tv/helix/subscriptions?broadcaster_id=121445595&first=90&after=eyJiIjp7Ik9mZnNldCI6OTB9LCJhIjp7Ik9mZnNldCI6MjcwfX0"
string(134) "https://api.twitch.tv/helix/subscriptions?broadcaster_id=121445595&first=90&after=eyJiIjp7Ik9mZnNldCI6MTgwfSwiYSI6eyJPZmZzZXQiOjM2MH19"
string(134) "https://api.twitch.tv/helix/subscriptions?broadcaster_id=121445595&first=90&after=eyJiIjp7Ik9mZnNldCI6MjcwfSwiYSI6eyJPZmZzZXQiOjQ1MH19"
string(134) "https://api.twitch.tv/helix/subscriptions?broadcaster_id=121445595&first=90&after=eyJiIjp7Ik9mZnNldCI6MzYwfSwiYSI6eyJPZmZzZXQiOjU0MH19"
string(134) "https://api.twitch.tv/helix/subscriptions?broadcaster_id=121445595&first=90&after=eyJiIjp7Ik9mZnNldCI6NDUwfSwiYSI6eyJPZmZzZXQiOjYzMH19"
string(134) "https://api.twitch.tv/helix/subscriptions?broadcaster_id=121445595&first=90&after=eyJiIjp7Ik9mZnNldCI6NTQwfSwiYSI6eyJPZmZzZXQiOjcyMH19"
string(134) "https://api.twitch.tv/helix/subscriptions?broadcaster_id=121445595&first=90&after=eyJiIjp7Ik9mZnNldCI6NjMwfSwiYSI6eyJPZmZzZXQiOjgxMH19"
string(134) "https://api.twitch.tv/helix/subscriptions?broadcaster_id=121445595&first=90&after=eyJiIjp7Ik9mZnNldCI6NzIwfSwiYSI6eyJPZmZzZXQiOjkwMH19"
string(134) "https://api.twitch.tv/helix/subscriptions?broadcaster_id=121445595&first=90&after=eyJiIjp7Ik9mZnNldCI6ODEwfSwiYSI6eyJPZmZzZXQiOjk5MH19"
string(136) "https://api.twitch.tv/helix/subscriptions?broadcaster_id=121445595&first=90&after=eyJiIjp7Ik9mZnNldCI6OTAwfSwiYSI6eyJPZmZzZXQiOjEwODB9fQ"
string(136) "https://api.twitch.tv/helix/subscriptions?broadcaster_id=121445595&first=90&after=eyJiIjp7Ik9mZnNldCI6OTkwfSwiYSI6eyJPZmZzZXQiOjExNzB9fQ"
=> all done OK