-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
event.publish(), timeout error for every relay in the NDKRelaySet #219
Comments
Just simply using |
Ok – I created a simple svelte version of this to test. A few things I'm noticing.
When I connect, and the relays haven't disconnected, publishing of valid kind 1 events works just fine to all relays. I'm going to close this for now but feel free to reopen if you have more info @Sebastix |
@erskingardner Sure that those relays are live? Afaik In my provided example I'm trying to publish an event to a set of relays (2 relays). When I publish an event kind 13811 with nak, the relay accepts it (without any provided tags). ./nak event -k 13811 --sec 472...7a8b -c 'hello this is new place checkin 9999' --auth wss://khatru.nostrver.se
connecting to wss://khatru.nostrver.se... ok.
{"id":"b62382edd07a6d151a3a037accef8af764fa6d8c1efecf497abda79676f266fe","pubkey":"efbb28950ec699e1f988dc8dba00e70cb89d18d7d9e931036a4c36ea4de77586","created_at":1715677576,"kind":13811,"tags":[],"content":"hello this is new place checkin 9999","sig":"3286064fa1b7e40db03bcb7c60add6b10172d9edb0a653773370fde83341f51927fe1bcb90d449fdd93d7bddadab0be17c57ca95e2c3c19c004842c52116752e"}
publishing to wss://khatru.nostrver.se... success. |
I don't know. Sorry, I don't have more time to today to look into it. From what I could see, NDK was working just fine publishing to explicit relays whether they were passed via the NDK instantiation or in the |
@erskingardner np, I will dig into it later today ;) thx for the feedback so far! |
@erskingardner I think I found a bug for replaceable events here: https://github.com/nostr-dev-kit/ndk/blob/master/ndk/src/events/index.ts#L191 as the signature is always invalid for the event being published. There is a difference in the |
Ah, @pablof7z changed / fixed it yesterday! now it needs a release ;) |
With version 2.8.2 released earlier today by @pablof7z the I would like to reopen the issue, but it seems I don't have the permission to do @erskingardner |
In multiple clients I'm using NDK and the code for publising events have stopped working. So I started debugging but I'm still stuck on why it stopped working.
I've created a simple example page in Nuxstr to reproduce the problem: https://nuxstr.nostrver.se/publish-event
I'm using Brave with the nos2x browser extension for the signing.
The code in the repo of this page: https://github.com/Sebastix/nuxstr/blob/master/pages/publish-event.vue#L9
Full snippet:
The text was updated successfully, but these errors were encountered: