Issues with long period routines?

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.

Without more reports or seeing the source code it’s hard to blame this on the API itself. Is the unexpected EOF an error from the HTTP request or JSON parser? What’s the response you get back? What language are you using?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.