Open reyamir opened 1 month ago
As temporary workaround: subscribe with autoclosing option using a filter that get nothing, like Filter::new().kind(Kind::TextNote).limit(0)
(or use get_events_of with that filter).
The issue shouldn't be the authentication but the fact that AUTH message is sent after you send the first event (or REQ). So, after the authentication, the event should be re-sent (same issue of few days ago with REQ).
I'll try to search a way to automatically re-send the event if the error is related to authentication.
Yo thank you, your workaround help me resolve the weird bug in my chat app 😅
Describe the bug
Construct a client which also set
automatic_authentication
totrue
(default). It will not automatically auth.To Reproduce
Repo: https://github.com/reyamir/rust-nostr-debug.git
The result is
Err: event not published: auth-required: you must auth
Expected behavior
Automatically auth when add new relay.
Build environment