nicolopignatelli / wc2018-slack-bot

World Cup 2018 Slack Bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stopped working

myoung34 opened this issue · comments

Worked fine when deployed:

However it stopped working silently (still running):

/aws/fargate/wc2018  2018/06/19 09:51:39 Something went wrong. Like Italy out of the tournament.
/aws/fargate/wc2018  Error: invalid character 'j' looking for beginning of value 
/aws/fargate/wc2018  2018/06/19 10:10:55 Something went wrong. Like Italy out of the tournament.
/aws/fargate/wc2018  Error: invalid character 'j' looking for beginning of value 
/aws/fargate/wc2018  2018/06/19 10:14:16 Something went wrong. Like Italy out of the tournament.
/aws/fargate/wc2018  Error: invalid character 'j' looking for beginning of value 
/aws/fargate/wc2018  2018/06/19 10:39:54 Something went wrong. Like Italy out of the tournament.
/aws/fargate/wc2018  Error: invalid character 'j' looking for beginning of value 
/aws/fargate/wc2018  2018/06/19 21:19:21 Something went wrong. Like Italy out of the tournament.
/aws/fargate/wc2018  Error: invalid character 'T' looking for beginning of value 
/aws/fargate/wc2018  2018/06/19 21:20:21 Something went wrong. Like Italy out of the tournament.
/aws/fargate/wc2018  Error: invalid character 'T' looking for beginning of value 
/aws/fargate/wc2018  2018/06/19 21:21:21 Something went wrong. Like Italy out of the tournament.
/aws/fargate/wc2018  Error: invalid character 'T' looking for beginning of value 
/aws/fargate/wc2018  2018/06/19 21:22:22 Something went wrong. Like Italy out of the tournament.
/aws/fargate/wc2018  Error: invalid character 'T' looking for beginning of value 
/aws/fargate/wc2018  2018/06/19 21:23:22 Something went wrong. Like Italy out of the tournament.
/aws/fargate/wc2018  Error: invalid character 'T' looking for beginning of value 
/aws/fargate/wc2018  2018/06/19 21:24:22 Something went wrong. Like Italy out of the tournament.
/aws/fargate/wc2018  Error: invalid character 'T' looking for beginning of value 
/aws/fargate/wc2018  2018/06/19 21:25:22 Something went wrong. Like Italy out of the tournament.
/aws/fargate/wc2018  Error: invalid character 'T' looking for beginning of value 
/aws/fargate/wc2018  2018/06/19 21:26:22 Something went wrong. Like Italy out of the tournament.
/aws/fargate/wc2018  Error: invalid character 'T' looking for beginning of value 
/aws/fargate/wc2018  2018/06/19 21:27:23 Something went wrong. Like Italy out of the tournament.
/aws/fargate/wc2018  Error: invalid character 'T' looking for beginning of value 
/aws/fargate/wc2018  2018/06/19 21:28:23 Something went wrong. Like Italy out of the tournament.
/aws/fargate/wc2018  Error: invalid character 'T' looking for beginning of value 
/aws/fargate/wc2018  2018/06/19 21:29:23 Something went wrong. Like Italy out of the tournament.
/aws/fargate/wc2018  Error: invalid character 'T' looking for beginning of value 
/aws/fargate/wc2018  2018/06/19 21:30:23 Something went wrong. Like Italy out of the tournament.
/aws/fargate/wc2018  Error: invalid character 'T' looking for beginning of value 
/aws/fargate/wc2018  2018/06/19 21:31:23 Something went wrong. Like Italy out of the tournament.
/aws/fargate/wc2018  Error: invalid character 'T' looking for beginning of value 
/aws/fargate/wc2018  2018/06/20 00:22:20 Something went wrong. Like Italy out of the tournament.
/aws/fargate/wc2018  Error: invalid character '<' looking for beginning of value 

Hi,
the bot is working fine. The problem is coming from the http://worldcup.sfg.io/ APIs.
For some reason, they're returning a 500 error html page instead of the JSON response.

The unmarshalling is failing and this is why you see that kind of error in your logs. It should go away by itself when the API returns again a correct 200 json response.