twitchdev / issues

Issue tracker for third party developers.
Apache License 2.0
73 stars 6 forks source link

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

Closed ABCRic closed 1 year ago

ABCRic commented 2 years ago

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.

BarryCarlyon commented 2 years ago

Duplicate of #11

ABCRic commented 2 years ago

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

Xemdo commented 1 year ago

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.