2 months ago
Hello,
I'm having problems with my discord bot. This issue started around two days ago when the bot stopped sending command responses or reactions. Right now, the bot doesn't even log in to the discord application, but there are no errors in the logs. This issue started completely without me making any changes to the code whatsoever.
It looks like a network issue, because earlier when the bot was able to log in, things in the background were still happening normally, the bot just sometimes didn't react to interactions.
14 Replies
Status changed to Open Railway • 2 months ago
2 months ago
I would like to, I'm just not really seeing HTTP logs section anywhere. Sorry if I'm just being blind.
2 months ago
Click on your service > Deployments > view logs > HTTP logs
Attachments
2 months ago
Not sure if there is easier way to share them, but these are all logs from last deploy attempt.
Attachments
2 months ago
Do you see any errors? Thought the issue might be related to your service not being able to communicate with discord's servers.
2 months ago
One solution that comes to mind is you can try to change your region and redeploy, this potentially could resolve your issue.
2 months ago
There are no errors and that's also the reason I went here, because I didn't know what else I could try. It was working for more than two month no problem and then this issue just started out of nowhere
darseen
One solution that comes to mind is you can try to change your region and redeploy, this potentially could resolve your issue.
2 months ago
That also came to my mind but I can't change regions on free tier. It wouldn't be really problem to pay but the cheapest option has way more reaources than the bot needs
2 months ago
Fair enough. There isn't much for me to do with little information unfortunately, hopefully other community members can solve your issue. Good luck
2 months ago
Hi, to help you resolve your issue, I have a few questions:
- I'm not familiar with the Discord API. Are there any usage fees or anything like that? (The same question applies to your Railway plan.)
- Could you share a log from when the Discord bot or its environment variable (token) starts being used, etc., until it fails? And also a log of when the bot was working (this would be much less important).
- I would recommend logging before and after the bot needs to be instantiated, called, etc., on the service, ideally on the dev server, to get explicit errors.
2 months ago
The issue got fixed randomly by itself just as it started
Status changed to Solved dave-sv • about 2 months ago