Gzuuus … you were right all along. My timestamp was not formatted properly.
BUUUT in my defense, NDK event.publish() doesn’t report errors from relays … and relays also don’t report useful errors when fail to write.
Had to deconstruct NDK to even get a stupid error logged like this (as returned from my relays) :
“wrong index for variant”
Nostr sucks for debugging.
Yes, I know I was fighting with this, and other stuff transmitted by relays xD I would like to have validation in ndk of some fields like this one that may break the nostr
Event.publish() does report if an event wasn’t published to the mimnimum requires number of relays; it throws a RelayError or something like that with all the errors the relays returned
Leaving an action item for myself here: #ndk add error handling to the guides documentation
Thank you Pablo. FWIW… I had to use relay.publish() to get the actual OK `message` (4th element in array) sent by rely (regardless of `accepted` 3rd element), because event.publish() only returns a list of relays who send OK with `accepted` == `true`.