Cross-Posted from reddit.com/r/twitch:
Hi,
This is my first post in this sub, so please let me know if it's in the wrong sub.
I have developed a small desktop application for personal use that uses the twitch.tv api to load streams. Starting sometime yesterday, my app failed to load the stream data. Today I started to debug it, and it turns out that every request I make to usher.twitch.tv is returning a 404 response.
I have not touched the code regarding the stream data in at least 2 months. Here is an example URL request:
http://usher.twitch.tv/select/lk8play.json?private_code=&allow_source=true&type=any&nauth=%7B%22user_id%22%3Anull%2C%22channel%22%3A%22lk8play%22%2C%22expires%22%3A1418411970%2C%22chansub%22%3A%7B%22view_until%22%3A1924905600%2C%22restricted_bitrates%22%3A%5B%5D%7D%2C%22private%22%3A%7B%22allowed_to_view%22%3Atrue%7D%2C%22privileged%22%3Afalse%2C%22source_restricted%22%3Afalse%7D&nauthsig=a300e4a92205999e57304bf8ef6962226a4fdf1f
Java's HttpURLConnection.getResponseMessage() is returning: 'Not Found'. Opening the URL in my browser reveals a blank page, and upon inspecting the network connecting with dev tools, it is also showing a 404:
http://usher.twitch.tv/select/CHANNEL.json: https://i.imgur.com/S7cK58R.png
I thought I'd try a https request just to test, and the connection was refused (not sure if that is normal behavior):
https://usher.twitch.tv/select/CHANNEL.json: https://i.imgur.com/dQ7UG9z.png
I also noticed that http://usher.twitch.tv/ and http://usher.twitch.tv/select/ both return 404 like http://usher.twitch.tv/select/CHANNEL.json
This python script (not mine) is also failing: https://gist.github.com/baderj/8593472[6] , so it's not my code. Can somebody from twitch please help me?
I'm running Linux Mint, but my app fails on my Windows server as well.
↧