So I have a discord bot for my school club. One component I have is to keep track of Twitch streams and notify when they go online. But I’m having an issue where after a longer period of time the bot would crash. According to the console it has to do with the user request producing an EOF.
DEBU[9633] Checking Status, Pass: 54
DEBU[9815] Checking Status, Pass: 55
Get https://api.twitch.tv/kraken/users?login=feedingwitheben,airlessthegoose,playhearthstone,rhino483,ic3princ3,solid_joe,nachi7,swish895,zyianz,meetandgreek: unexpected EOF
Get https://api.twitch.tv/kraken/users?login=feedingwitheben,airlessthegoose,playhearthstone,rhino483,ic3princ3,solid_joe,nachi7,swish895,zyianz,meetandgreek: unexpected EOF
panic: runtime error: invalid memory address or nil pointer dereference
What would cause the Twitch API to produce an EOF?
Thanks for any insight.