Hello, I wrote a bot that responded to certain messages that have been running and keeping chat logs for weeks, it was working until yesterday, but now I get this warning when I want to run it. What is the problem? Screenshot: https://imgur.com/a/PtjHDqg
Chat log file record dated today :https://imgur.com/a/2d3vl0h
Note: Bot running on a Virtual server on Amazon Web Services(AWS)
The error says your login failed, so chances are your OAuth token has expired if you haven’t renewed it.
Additionally, as covered under the docs
When you get a token it has an
expires_in which tells you in how long the key dies.
I imagine you probably got a oAuth from a token generator, and those keys will generllay have a expire of around 60 days and can’t be refreshed, so your best bet is to create your own oAuth flow, and then you can auto refresh, but those tokens generally last only four hours. But…
You’d normally take the
refresh_token you got when making the token and auto refresh your token at bot boot. As the oAuth is only checked when the bot connects to chat.
Refreshing is covered here:
@BarryCarlyon @Dist Thank u for helpfully.I renewed the OAuth token expired token and the problem is resolved
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.