planetary-social / nos

nos.social social media for all of us, using nostr
https://nos.social
Mozilla Public License 2.0
122 stars 14 forks source link

[Bug] Search sometimes fails to show results #1393

Closed joshuatbrown closed 1 month ago

joshuatbrown commented 2 months ago

Describe the bug

Searching for a NIP-05 name or any text often fails.

To Reproduce

Steps to reproduce the behavior:

  1. Delete the app and reinstall
  2. Tap Discover
  3. Type a search term into the box, like "matt"
  4. Observe that no results appear (or very few)

Expected behavior

The results should show lots and lots of Matts; there are lots of them and nostr.band has them.

Screenshots or Video

https://github.com/user-attachments/assets/454196b9-815a-4c0c-8213-15355972877a

Technical info

Additional context

Rabble's report on Slack

Run this to see lots and lots of results (probably 50):

echo '{"kinds":[0],"search":"matt","limit":50}' | nak req wss://relay.nostr.band

Or just search nostr.band on the web for "matt" and see how many results there are.

It looks like local search is working, as seen in the video above. There seems to be an issue with the relay search, or displaying results from it, or something along those lines.

Sometimes the results do eventually appear, but it seems to take a very long time.

joshuatbrown commented 2 months ago

This seems to have stopped happening for now, so I'm moving this to the backlog.

setch-l commented 2 months ago

@joshuatbrown - Is this still an issue you are seeing? Should we add something to indicate there is a slow network connection and search isn't available? As I think that was the thing that was happening. Is that detectable in the app?

joshuatbrown commented 2 months ago

@setch-l I can't reproduce it today. I think I may have seen recently, but I don't remember for sure.

joshuatbrown commented 1 month ago

@setch-l I believe #1466 fixed this issue, so I've moved it to UAT.