-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Program stops after some time with ETIMEDOUT error. #115
Comments
Judging by the stacktrace, the issue is with |
@SleeplessOne1917 i set secondsBetweenPolls to 120. it's bigger than default value. you can take a look at the code: https://gist.github.com/RocketRide9/1589a7733f0be41e5d8ae7dda51dd0ac |
i removed async keywords from handlers and bot is running for 4 or so hours. i used it for await keyword. interesting EDIT: it just crashed again |
After looking into When you get the timedout errors, is it always when the bot is fetching subscribed posts like in the error you shared? Or has this been happening for other requests as well? |
@SleeplessOne1917 also happened with private message:
i use lemmy-bot 0.4.6 btw |
Do you fare any better if you try it with version 0.5.1? |
world is running lemmy 18 so i cant use 0.5.x (according to README). is lemmy.ml good enough to test bot there? |
lemmy.ml should be good to test. In addition to the newer API, I'm curious if lemmy.ml's lower traffic (compared to world) will also affect the timeouts. |
i finally found an instance where my registration wasn't denied. i changed lemmy-bot version to 0.5.1 and changed credentials. allow list doesn't seem to work.
In ~5 mins after starting the bot I see this line |
btw can bot try again later if server didn't respond? I think websites getting down isn't something uncommon |
Now that you mention it, I don't think I handle that case very well. I will take a look and make a change. |
I am using this script as a temporary solution:
So far working great |
i created simple bot with
posts
andprivateMessage
handlers. After running for some time it closes with the following error:It works for 20-30 mins before closing. One time it closed right after starting.
The text was updated successfully, but these errors were encountered: