Giter Site home page Giter Site logo

Comments (3)

soapdog avatar soapdog commented on May 15, 2024 1

Also it is important to notice that between you following and messages arriving it will take a long time. You need to fetch and index these messages. This is not like an Instant Messenger kind of situation that you just ask "give me the last 10 messages for user X", it is a bit more involved than that and it takes time.

What I suspect happened is that you clicked follow but your db still didn't had any message for my user in there and thus the lastMsgs variable was empty.

I'm going to add an empty messages check there. Thanks a lot for spotting it @Ryuno-Ki

from patchfox.

soapdog avatar soapdog commented on May 15, 2024

Unfortunately there are many moving parts and I am yet to cover all the potential errors. That screen allows a person to jump straight to issues here and at least tell me about it which then allows me to try to fix it.

I will try to see if I can see there why this has happened. Just be aware that the error manifesting there might be a side-effect of another problem. Somehow the ssb-ws connection between sbot (aka ssb-server) and patchfox has been disconnecting after sometime when it shouldn't do so causing the pull streams being used to close unexpectedly. The solution to that error is apparently use the undocumented pull-reconnect which I haven't yet discovered how to use.

I will work on this and try to see if I can make that specific case not happen again. The screen you're seeing is the last resort error screen. If it is something that patchfox can't handle it shows that which is IMHO better than just crashing.

from patchfox.

Ryuno-Ki avatar Ryuno-Ki commented on May 15, 2024

Sounds like a very defensive coding style...
Which can be a good thing.

from patchfox.

Related Issues (20)

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.