Error requesting data via "https://api.twitch.tv/kraken/streams/?channel="

You application needs to be fault tolerant of Request Failures/API faults/non 200 codes and be able to Retry the same request.

This includes but its not limited to

  • Twitch Outages
  • Issues with your firewall preventing out bound request
  • getaddrinfo failing to obtain DNS information
  • Cloudflare breaking again
  • DNS failing
  • Twitch API returning a Non 200 code
  • Your disk getting full and thus failing the request
  • Your datacenter losing network connectivity.

Each one of these things, the only thing you can do is retry the request.

Either mark down a “no data” for this fetch, or retry.

1 Like