I'm trying Nostr Tools out, but I'll occasionally get relay timeout errors from the code below

The problem doesn't always persist (which makes it challenging to debug) and happens with different relays

Any ideas?

#asknostr #programming

Reply to this note

Please Login to reply.

Discussion

You’re probably getting rate limited, are you running your own relay?

I see you are using damus, I think if you are fetching or publishing more than 1 note per second on damus it’s considered spam

That makes sense, you’re probably right

I’ll experiment with more relays or see where I can be flexible on requests

Thanks! 🙏

for debugging you can use

nak serve

https://github.com/fiatjaf/nak

What does it do?

a local tmp in memory relay, quite handy

I’d also take a look at nostrify if you want something easier

https://nostrify.dev/

It uses nostr tools behind the scenes, but it’s higher level