Auto-Stream-Recording-Twitch
Auto-Stream-Recording-Twitch copied to clipboard
Sudden error after few hours of running the script; Unable to validate JSON
System Infos OS: Linux Ubuntu Mate 20.04.2 LTS 64bit Kernel: Linux 4.9.241-69 Hardware: Odroid HC4 with Samsung 850 Pro 512GB SSD
I've recently enjoyed using your beautiful script in these days without any problems. However, after few days, for first few hours, the script runs perfectly without any problem. But at the certain moment, it suddenly pops this error:
[cli][error] Unable to validate JSON: Unable to validate key 'data': Unable to validate key 'streamPlaybackAccessToken': Type of None should be 'dict' but is 'NoneType' or Key 'videoPlaybackAccessToken' not found in {'streamPlaybackAccessToken': None}
After this error message, the script starts to spam few chunks of lines,
[cli][error] Unable to open URL: https://usher.ttvnw.net/api/channel/hls/{streamername}.m3u8?player=twitchweb&p=388787&type=any&allow_source=true&allow_audio_only=true&allow_spectre=false&sig=dec276a02b6b435f4cb4a0efd505631ff6feef2c&token=%7B%22adblock%22%3Afalse%2C%22authorization%22%3A%7B%22forbidden%22%3Afalse%2C%22reason%22%3A%22%22%7D%2C%22blackout_enabled%22%3Afalse%2C%22channel%22%3A%22{streamername}%22%2C%22channel_id%22%3A631830970%2C%22chansub%22%3A%7B%22restricted_bitrates%22%3A%5B%5D%2C%22view_until%22%3A1924905600%7D%2C%22ci_gb%22%3Afalse%2C%22geoblock_reason%22%3A%22%22%2C%22device_id%22%3Anull%2C%22expires%22%3A1614997911%2C%22extended_history_allowed%22%3Afalse%2C%22game%22%3A%22%22%2C%22hide_ads%22%3Atrue%2C%22https_required%22%3Atrue%2C%22mature%22%3Afalse%2C%22partner%22%3Afalse%2C%22platform%22%3A%22web%22%2C%22player_type%22%3A%22embed%22%2C%22private%22%3A%7B%22allowed_to_view%22%3Atrue%7D%2C%22privileged%22%3Afalse%2C%22role%22%3A%22%22%2C%22server_ads%22%3Atrue%2C%22show_ads%22%3Afalse%2C%22subscriber%22%3Atrue%2C%22turbo%22%3Afalse%2C%22user_id%22%3A226466679%2C%22user_ip%22%3A%2283.53.116.182%22%2C%22version%22%3A2%7D&fast_bread=True (('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')))
- over and over again until I shut the script and restart it. I have made some changes on client id, client secret, and the oauth token over and over again as well as I rebooted this script, hoping for it not to spam unable to open url message this time.
Anyone with any ideas what's going on?
It's Streamlink issue, not related to script behaviour. Is this one time error or you keep getting this? You can also open an issue on Streamlink repository with Streamlink debug log.
Thank you! I had this error probably 5 times. I'll take a look at streamlink to check if there is anything that might cause this issue again. Also, thank you very much about your advices, too!
Let's keep this issue open, because problem affecting to the main functionality of script. And I'll investigate it too.
Aight, do you want me to show you the script? I'm not sure if this will make a huge difference though.
Which script?
Configurations, you know
It doesn't matter in this case
Alright, tell me if you need informations later on :D