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

Helix Streams - Surprise Pagination! #2

Closed
BarryCarlyon opened this issue Dec 6, 2019 · 6 comments
Closed

Helix Streams - Surprise Pagination! #2

BarryCarlyon opened this issue Dec 6, 2019 · 6 comments
Labels
product: api API endpoints in the "helix" namespace ticketed Has been given an internal tracking ticket

Comments

@BarryCarlyon
Copy link
Contributor

BarryCarlyon commented Dec 6, 2019

Brief description

The helix streams API is returning a pagination cursor in cases where it shouldn't.

Some example requests

https://discuss.dev.twitch.tv/t/get-streams-repeatedly-returning-cursor-ia/23348

This one is a recurrence of a issue that has happened before.

How to reproduce

Call the streams helix endpoint specifying a single user_id or login

Call when live:

https://api.twitch.tv/helix/streams?user_login=cohhcarnage

https://api.twitch.tv/helix/streams?user_id=30661033

Returns a pagination

"pagination": {
"cursor": "IA"
}

Expected behavior

No pagination key to be present in the JSON output when pagination shouldn't occur

@BarryCarlyon BarryCarlyon added the product: api API endpoints in the "helix" namespace label Dec 6, 2019
@BarryCarlyon BarryCarlyon changed the title Surprise Pagination! Helix Streams - Surprise Pagination! Dec 6, 2019
@mauerbac
Copy link

+1
Sometimes it returns an invalid cursor that is actually two cursors, space-concatenated, and base64-encoded a second time.

@mkwatson
Copy link

+1
what @mauerbac said!

@MrSpock78
Copy link

@jbulava
Copy link
Member

jbulava commented Dec 19, 2019

+1
Sometimes it returns an invalid cursor that is actually two cursors, space-concatenated, and base64-encoded a second time.

This is expected and is valid. The change in cursor is due to an internal infrastructure change, however passing in the full value of cursor should behave as usual.

We'll investigate if the IA cursor is expected with the infrastructure change.

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

HLX-1316

@lleadbet
Copy link
Contributor

Closing the loop, we've addressed the IA issue on this endpoint. If you're continuing to see this, please feel free to reopen this issue.

If you continue to see other issues, please feel free to reopen an issue with more information.

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

No branches or pull requests

6 participants