# Helix subscriptions API returning error after reading subscriber 800-900 of a streamer

**URL:** <https://discuss.dev.twitch.com/t/helix-subscriptions-api-returning-error-after-reading-subscriber-800-900-of-a-streamer/27248>\
**Category:** API\
**Created:** [July 21, 2020, 7:41am UTC](https://discuss.dev.twitch.com/t/helix-subscriptions-api-returning-error-after-reading-subscriber-800-900-of-a-streamer/27248 "2020-07-21T07:41:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![brehler](https://avatars.discourse-cdn.com/v4/letter/b/a8b319/32.png) [@brehler](https://discuss.dev.twitch.com/u/brehler)\
**Post date:** [July 21, 2020, 7:41am UTC](https://discuss.dev.twitch.com/t/helix-subscriptions-api-returning-error-after-reading-subscriber-800-900-of-a-streamer/27248/1 "2020-07-21T07:41:11Z")

</div>

I have a bot that retrieves all subscriptions from a streamer (to process for point distribution). About 10 channels use this bot and run just fine. Since yesterday I’ve had problems with retrieving the subscriptions of one of my users, SouzyLIVE.

The bot does helix calls to get subscriptions. Because the streamer has more than 100 subscriptions, I use the cursor to get the next batch, in batched of 100 each.

The weird thing is that I get an error code 500 internal server error when I try to get subscriptions 800-900.  
When I change the “&first=100” to “&first=50” I get everything in batches of 50, up to 850 subscribers.  
But then the request getting subscribers 850-900 returns an internal server error.

{“error”:“Internal Server Error”,“status”:500,“message”:""}

Further testing reveals that I get the error at retrieving the 881th subscriber.

- I tried gifting a sub to see if that resolved the problem, but it did not
- Other streamers that use this bot can retrieve their subscriptions in batched just fine
- Before yesterday SouzyLIVE also could retrieve his 800+ subscriptions just fine

I did not change my code, nor did SouzyLive change anything in his settings or authorization.

The only thing I can think of is that i get this error because a specific user subbes to his channel?!  
Please help me out, what did I miss?

EDIT:

- SouzyLIVE has around 880 subscribers, so the problem might be when reading the last batch of subscribers
- I visited the TwitchDev discord and saw a similar issue in the api-help category, so it might be on Twitch’s side?

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [July 21, 2020, 10:51am UTC](https://discuss.dev.twitch.com/t/helix-subscriptions-api-returning-error-after-reading-subscriber-800-900-of-a-streamer/27248/2 "2020-07-21T10:51:02Z")

</div>

This is a known issue kicking about as you found on the Discord.

Waiting for twitch to resolve

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [July 21, 2020, 10:54am UTC](https://discuss.dev.twitch.com/t/helix-subscriptions-api-returning-error-after-reading-subscriber-800-900-of-a-streamer/27248/3 "2020-07-21T10:54:41Z")

</div>

Issue being tracked at

> <https://github.com/twitchdev/issues/issues/172>
>
> \*\*Brief description\*\*
> 
> Using code similar to #18 but for the subscribers endpo…int
> 
> I get a HTTP 500 error after getting a number of pages into downloading all subscribers for a channel
> 
> \*\*How to reproduce\*\*
> 
> Use code in #18 but for the subscribers endpoint
> Download all the subscribers
> Observe a 500 error when attempting to get the last page. Meaning the call to get all subs "fails" and you can't get all subscribers of a channel.
> 
> \*\*Expected behavior\*\*
> 
> Get all pages of subscribers from the helix endpoint
> 
> \*\*Additional context or questions\*\*
> 
> Original report on Discord
> 
> https://discordapp.com/channels/504015559252377601/523675960797691915/734923497398206566
> 
> Replicated by myself and on the forums
> 
> https://discuss.dev.twitch.tv/t/helix-subscriptions-api-returning-error-after-reading-subscriber-800-900-of-a-streamer/27248

Since it’s now still occuring

---

<div class="post-metadata">

**Author:** ![brehler](https://avatars.discourse-cdn.com/v4/letter/b/a8b319/32.png) [@brehler](https://discuss.dev.twitch.com/u/brehler)\
**Post date:** [July 22, 2020, 6:36am UTC](https://discuss.dev.twitch.com/t/helix-subscriptions-api-returning-error-after-reading-subscriber-800-900-of-a-streamer/27248/4 "2020-07-22T06:36:57Z")

</div>

This issue seems to be solved now.  
Thank you all for your effort \<3

---

<div class="post-metadata">

**Author:** ![system](https://d2opxh93rbxzdn.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://discuss.dev.twitch.com/u/system)\
**Post date:** [August 21, 2020, 6:37am UTC](https://discuss.dev.twitch.com/t/helix-subscriptions-api-returning-error-after-reading-subscriber-800-900-of-a-streamer/27248/5 "2020-08-21T06:37:00Z")

</div>

Closed on August 21, 2020, 6:37am UTC

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