Hi,
my name is Jacob Tybinski, I’m an amateur developer, this is my first post on the forum.
I’ve recently rebuilt my application that involves Twitch API. It’s done now, it’s behaviour and code source can be seen here: tybin.hostilla.pl.
Problem that came to my attention just when I was about to call it a day and roll out as finished is: when my stream (totally random one, created just to test my app) goes offline, after a minute or two twitch responses vary in content regardless of the actual status of the stream. Everything on platform says “offline”, but refreshing my requests gives random results - once it says that stream object in JSON response is a null, only to become full of false informations just as if I was just clicking online and offline repeatedly. Regardless of any delay between going offline and it being visible through the API, this behaviour completely suprised me. Responses aren’t cached in any way, I even refreshed it manually in browser just to see changing content in matter of seconds. Is this a known issue? What are the reasons of it behaving like that?