You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I leave my bot (based on the boilerplate of the example echo bot) on e.g. overnight, it goes like this:
2017/12/06 02:21:54 api.go:38: response map[data:<html>
<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.12.2</center>
</body>
</html>
]
2017/12/06 02:21:54 langbot.go:74: invalid character '<' looking for beginning of value
The main bot loop is:
err = bot.Serve(netCtx)
if err != nil {
log.Fatal(err)
}
I guess my bot could ignore this error, and enter the loop again. But is it the way it's supposed to work? If it couldn't access Telegram, it would continue crashlooping forever.
When I leave my bot (based on the boilerplate of the example echo bot) on e.g. overnight, it goes like this:
The main bot loop is:
I guess my bot could ignore this error, and enter the loop again. But is it the way it's supposed to work? If it couldn't access Telegram, it would continue crashlooping forever.
P.S. I mistakenly submitted this earlier to go-telegram-bot-api/telegram-bot-api#118.
The text was updated successfully, but these errors were encountered: