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 Get Streams missing online streams, can't migrate from v5 #558

Closed
ABCRic opened this issue Jan 19, 2022 · 3 comments
Closed

Helix Get Streams missing online streams, can't migrate from v5 #558

ABCRic opened this issue Jan 19, 2022 · 3 comments
Labels
product: api API endpoints in the "helix" namespace

Comments

@ABCRic
Copy link

ABCRic commented Jan 19, 2022

Brief description
The Helix Get Streams endpoint is missing streams that are online, after initially reporting them as online.

WIthin an initial window of about 30s-1min after stream start, requests intermittently show the stream as online as cache warms up - this is expected. However, any requests past around the minute mark behave as if the stream is not online and instead just return an empty data list.

My current use case uses Get Stream By Id from v5 which behaves correctly, but that's going away soon so and Get Streams in Helix is the migration path indicated in the guide.

How to reproduce
Tests were run using my channel at twitch.tv/abcric.

  1. start streaming
  2. wait 30 seconds
  3. request https://api.twitch.tv/helix/streams?user_id=26735539 (with bearer token and client-id), returns correct result (1 stream)
  4. wait another minute
  5. request https://api.twitch.tv/helix/streams?user_id=26735539 (with bearer token and client-id), returns empty result (0 streams)

Expected behavior
Endpoint returns the stream data instead of an empty list.

Screenshots
Endpoint returning empty response even though stream has been online for more than 10 minutes and has viewers:
image

Endpoint results over time, 5 second interval (stream started at 13:45:09):
image

Second example, same as above (stream started at 13:52:52):
image

Additional context or questions
I've posted about this issue in the dev forum at https://discuss.dev.twitch.tv/t/get-streams-endpoint-still-missing-online-streams/36265 which has some more context.

Get Streams from v5 shows the same broken behavior, although fixing that at this point is moot.
Get Stream By Id from v5 works correctly.

EventSub webhooks correctly report when the stream goes online and offline. Meaning, for the period between ~1 minute after stream start and until stream end, the backend as viewed via EventSub acknowledges the stream is online, but viewed via Get Streams it does not. However, as per the forum thread, EventSub is not sufficient for my use case.

@ABCRic ABCRic added the product: api API endpoints in the "helix" namespace label Jan 19, 2022
@BarryCarlyon
Copy link
Contributor

Duplicate of #11

@ABCRic
Copy link
Author

ABCRic commented Feb 15, 2022

Is this ever getting looked into? v5 is shutting down in 13 days, the Helix alternative is still broken.

@Xemdo
Copy link

Xemdo commented Aug 15, 2023

Closing as this is likely not still occurring. It seems the issue is related to one that was noticed in late 2022. That issue was related to a backend service issue and should have been fixed. If this can be reproduced again we'll look back into it, but it seems resolved for now.

@Xemdo Xemdo closed this as completed Aug 15, 2023
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
Projects
None yet
Development

No branches or pull requests

3 participants