Comments (6)
Seems to work! Or at least, none of my bots have died in the past week.
I'll make a PR.
from ananas.
I'm aware of this, it's been killing off my bots for weeks. Haven't had time to take a look but I'll ping this issue again when I do.
from ananas.
A few months late, but: As far as I can tell, this is an issue upstream, and there may not be a way to easily contain it in ananas, since PineappleBot is a subclass of Mastodon.py's StreamListener, which is what calls urllib, which is where the error is occurring.
I've suggested a change here which I hope will work around the issue.
from ananas.
Latest status with this is I was able to write code to handle it, by attempting to reopen the connection, but the new issue I encountered was that in my test setup (where I reproed by connecting to a local dev mastodon instance and shutting that down), was that it would get stuck somewhere deep in requests
trying to reopen the connection. That was a couple months ago; I never found out if it was a sufficient fix for bots in vivo. I'll see if I can dig up that code, and try it on a bot connected to a real instance to see if it's just a deficiency in my test setup.
from ananas.
Any luck finding causes/solutions?
from ananas.
It looks like this was worked around in Mastodon.py here: halcy/Mastodon.py@d0ae9dc
I've edited ananas.py in my virtualenvs to use the new param, I'll report back in a week if it works or not.
from ananas.
Related Issues (15)
- Is it possible to support cron divisions? HOT 2
- configparser removes comments from config files HOT 4
- DEFAULT section ignored after configobj change HOT 1
- Don't kill @interval threads if there's an exception HOT 1
- Handle config.cfg files with no DEFAULT section
- if file system is full, shutting down bot empties config file HOT 5
- Update PyPI release HOT 1
- TypeError: 'module' object is not callable HOT 3
- Make error reporting configurable HOT 2
- Extra backslashes in readme.md HOT 1
- v1.0.0b18 changes missing from repo HOT 3
- Can't delete keys from config
- History rewritten to remove deadname
- Bot stops running if error reporting fails
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ananas.