Protip: You can save a lot of head scratching if you make sure the event you're trying to query for is actually in the relay you're querying before assuming it's a problem with your code.

Reply to this note

Please Login to reply.

Discussion

More to the point, just adding the relay is not enough. You should re-save your settings before wondering why you don't seem to be getting the kind0's you're expecting.

Isn't querying the only way to find that out?

In my case, I was finishing up some code to pull the metadata for a pubkey. It was working in the repl with mine and a few other keys, but when I tried to test the fully wired code with my test keys, I wasn't getting the events. Turns out the relay I was testing against just didn't have that data.

My point is that normally the only way to know whether a relay has a given event or not is by querying it.