GithubHelp home page GithubHelp logo

Comments (6)

StarlitGhost avatar StarlitGhost commented on July 19, 2024 2

Seems to work! Or at least, none of my bots have died in the past week.

I'll make a PR.

from ananas.

chr-1x avatar chr-1x commented on July 19, 2024 1

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.

joyeusenoelle avatar joyeusenoelle commented on July 19, 2024 1

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.

chr-1x avatar chr-1x commented on July 19, 2024 1

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.

ashkitten avatar ashkitten commented on July 19, 2024

Any luck finding causes/solutions?

from ananas.

StarlitGhost avatar StarlitGhost commented on July 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.