twitchdev / issues

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

Incoherent data for `Get Streams` #957

Open Ionys320 opened 4 months ago

Ionys320 commented 4 months ago

Brief description Using app token, it can fetch any stream for any user_id.

When using the token of a specified user (let's call it A), and putting the same user (A) as user_id , it sends me back an empty answer. Set user_id to another user id (B) (and always using A's user token) correctly fetch data.

https://api.twitch.tv/helix/streams?user_id=A : Works with app token, my own token but not with A's user token (no stream sent back) https://api.twitch.tv/helix/streams?user_id=B : Working with both tokens

How to reproduce Make a GET https://api.twitch.tv/helix/streams?user_id=A with user's ID and token.

Expected behavior Should have the current stream.

Screenshots

Additional context or questions We don't have the issue for every users, only two over a hundred report us an issue. For the record, user 117182377 (aka user A) have this issue. And of course, when making the request, A is currently streaming.

Epivictus commented 3 months ago

I'm getting a somewhat similar issue as well.

If I do https://api.twitch.tv/helix/streams?user_login=A , it returns empty (no stream sent back). But if I do https://api.twitch.tv/helix/streams?user_login=B , it returns a proper result with the user's stream info.

I had a friend of mine to test both users A and B, both are returned with proper results.

iProdigy commented 3 months ago

helix get streams can exclude results when the user has content filtering enabled - they can go to https://www.twitch.tv/settings/content-preferences to disable any filtering

Epivictus commented 3 months ago

helix get streams can exclude results when the user has content filtering enabled - they can go to https://www.twitch.tv/settings/content-preferences to disable any filtering

That actually fixed my issue! Thank you!

Ionys320 commented 3 months ago

helix get streams can exclude results when the user has content filtering enabled - they can go to https://www.twitch.tv/settings/content-preferences to disable any filtering

Oooh that's it! Thanks for the help <3 Maybe having this documented somewhere could be nice, or a way to disable filters when using the endpoint. Btw, it's a bit weird Helix filters streamer's own streams.