DorCoMaNdO / ModBot

A Modular Bot for Twitch
Other
19 stars 20 forks source link

Failed to update userlist, the userlist server might be down. #15

Open igodiz opened 8 years ago

igodiz commented 8 years ago

Hello Getting a lot of spam in my modbot window. Any possibility to fix this or do i just need to reinstall modbot?

https://gyazo.com/7c6dc6b0a341d6361ecf0145b3bbefd6

EasyAsABC123 commented 8 years ago

getting this too it appears to be due to https://discuss.dev.twitch.tv/t/psa-chat-servers-are-going-to-migrate-to-aws-ec2-servers/4877/64

DorCoMaNdO commented 8 years ago

@EasyAsABC123 that is completely unrelated.

@igodiz That's an issue out of my control, occasionally the userlist server may fail to respond to requests, this is nothing major as usually it is fixed by the next request made by the bot, this message is nothing more than a warning.

EasyAsABC123 commented 8 years ago

@DorCoMaNdO actually you are "right" it is unrelated and yet related. The API for userlist has changeed...you used to be able to call it like so:

http://tmi.twitch.tv/group/user/NDS_TaLoN/chatters

but if you call that now the result is

""

however calling: http://tmi.twitch.tv/group/user/nds_talon/chatters results in the correct behavior...so a .ToLower() is required for it to be fixed

DorCoMaNdO commented 8 years ago

The request is made via a lowercase version of the channel name, the issue is with the server, not how the bot makes the call, refresh the page enough times and you'll either end up with an empty json array or a "Service Unavailable" message.

EasyAsABC123 commented 8 years ago

Sounds good then, I am aware of the 502 nginx error, when I slam the service I don't get empty json so far...