ssbc / patchbay

An alternative Secure Scuttlebutt client interface that is fully compatible with Patchwork
http://www.scuttlebutt.nz
388 stars 78 forks source link

Patchbay becomes unresponsive upon NotFoundError #271

Closed christianbundy closed 4 years ago

christianbundy commented 6 years ago

I clicked a link to a message and it threw an error, but when I continued using the app I realized that none of my posts were working. Searches no longer work either, which hints (maybe?) that sbot has already crashed in the background.

It's worth nothing that I'm using secure-scuttlebutt@master, but I'm unsure how long this has been a problem.

NotFoundError: Not Found:%atLs6tBJ6vGZCYbd42ylHbBDLK4v1BEHjlV81d6Em1w=.sha256
    at NotFound (/home/christianbundy/src/ssbc/patchbay/node_modules/flumeview-hashtable/hashtable.js:2:13)
    at next (/home/christianbundy/src/ssbc/patchbay/node_modules/flumeview-hashtable/hashtable.js:44:16)
    at /home/christianbundy/src/ssbc/patchbay/node_modules/flumeview-hashtable/hashtable.js:52:20
    at chainMaps (/home/christianbundy/src/ssbc/patchbay/node_modules/secure-scuttlebutt/minimal.js:100:14)
    at /home/christianbundy/src/ssbc/patchbay/node_modules/flumedb/index.js:71:14
    at /home/christianbundy/src/ssbc/patchbay/node_modules/flumelog-offset/inject.js:76:14
    at /home/christianbundy/src/ssbc/patchbay/node_modules/flumelog-offset/frame/recoverable.js:48:11
    at /home/christianbundy/src/ssbc/patchbay/node_modules/aligned-block-file/blocks.js:74:11
    at get (/home/christianbundy/src/ssbc/patchbay/node_modules/aligned-block-file/blocks.js:29:7)
    at next (/home/christianbundy/src/ssbc/patchbay/node_modules/aligned-block-file/blocks.js:53:7)
mixmix commented 6 years ago

There are some things you can do which seem to crash the sbot ... ? one example I know of is putting a weird query into /query ... results stop coming and you can open different pages but nothing loads

christianbundy commented 6 years ago

Yeah, try navigating to this non-existent message: %zCJJlXAqwz+ESR3/UK/xeX/mrgAe2K2VJnS8XCd0ypA=.sha256

For me, it opens the error page and then goes to that "you can open different pages but nothing loads" state. My favorite way to test this is by doing a search for ?food or something, and when it's in this state nothing comes up. Can you reproduce the same thing on your client?

arj03 commented 6 years ago

I have noticed that today as well.

mixmix commented 5 years ago

This could be the routers async normalizer... getting a the message and failing... but i wonder why it then explodes the server.

On Thu, 8 Nov 2018, 09:28 Anders Rune Jensen, notifications@github.com wrote:

I have noticed that today as well.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ssbc/patchbay/issues/271#issuecomment-436765939, or mute the thread https://github.com/notifications/unsubscribe-auth/ACitnjz6OfnJddyVbcovCiNHLDHIPvW5ks5us0JbgaJpZM4YAQZ3 .

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.