Skip to content
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

Live Extension Activated Channels: weird pagination #57

Closed
BarryCarlyon opened this issue Feb 12, 2020 · 4 comments
Closed

Live Extension Activated Channels: weird pagination #57

BarryCarlyon opened this issue Feb 12, 2020 · 4 comments
Labels
product: extensions ticketed Has been given an internal tracking ticket

Comments

@BarryCarlyon
Copy link
Contributor

Brief description

it's an old issue but needs to be logged

https://dev.twitch.tv/docs/extensions/reference/#get-live-channels-with-extension-activated

The pagination/record count is weird

How to reproduce

Call the end point, and marvel how page 1 has 3 records, page 2 5 records, page 3 1 record, page 4 3 records....

Expected behavior

Fixed number of records on a page and/or a limit option to control records returned.

Additional context or questions

It's been like this for ages even more so since the "Channels with extension installed on" broke and was removed

@Breci
Copy link

Breci commented Feb 12, 2020

Sometimes you can even get an empty array of result on a page with the pagination cursor, and next page you have results in the array.

@mauerbac mauerbac changed the title Live Extension Activated Channels: weird pagiantion Live Extension Activated Channels: weird pagination Mar 23, 2020
@mauerbac
Copy link

EXT-1158

@mauerbac mauerbac added the ticketed Has been given an internal tracking ticket label Mar 23, 2020
@guanzo
Copy link

guanzo commented Apr 8, 2020

I'd appreciate a fix. My extension has tens of thousands of active channels. That means, in order to get a list of active channels, I have to literally make tens of thousands of api calls.

count: number of api calls so far
pageSize: number of channels returned per call.
Some calls return zero results + a new token. I've seen 2 consecutive calls with zero results...??

^ that stops at 10,000 calls b/c i forgot to increase the max limit, and I wasn't going to run the script again b/c it takes 10+ minutes.

@BarryCarlyon
Copy link
Contributor Author

This is mostly irrelevant now that it has been replaced by a new endpoint but other issues exist

the new endpoint is not gappy like the old

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product: extensions ticketed Has been given an internal tracking ticket
Projects
None yet
Development

No branches or pull requests

4 participants