mleku on Nostr: hzrd149 next.nostrudel.ninja is not responding correctly to a CLOSED "auth-required" ...
hzrd149 (npub1ye5…knpr) next.nostrudel.ninja is not responding correctly to a CLOSED "auth-required" message on these three relays, i am just checking this and coracle now auths every time with the auth flow correctly structured according to nip-42 but nostrudel is not sending back an auth unless you open up the task manager and manually click the auth
my suspicion is that the other two relays there are also running teh same flow, so i think your code is not correctly handling... and the naive assumption is that "always" means it always responds with an auth response every time it receives an auth envelope, which it clearly doesn't even with the CLOSED "auth-required" message
would be great if this was fully working to spec
just a side note, i've set up an "auth requested" flag in my websocket library now, so it only ever sends one per websocket connection... previously it was hammering the client with requests for the multiple req envelopes it was receiving, which i don't think is correct either, one socket, one auth, that is how the protocol is described, so i've made it so... i think that if it's done so that each one makes an auth request and each auth request generates a new auth challenge each time there is race conditions, and it's just unnecessary traffic... right answer or silence, is my philosophy
in any case, please alter nostrudel's auth handling so it takes the CLOSED auth-required message as a prompt to auth, as it is specified in nip-42
Published at
2024-09-29 08:41:30Event JSON
{
"id": "7dbe25421c7e5fda267f7042f783d9739a9bbb1728a1a2c5a59c933e44939308",
"pubkey": "4c800257a588a82849d049817c2bdaad984b25a45ad9f6dad66e47d3b47e3b2f",
"created_at": 1727599290,
"kind": 1,
"tags": [
[
"p",
"266815e0c9210dfa324c6cba3573b14bee49da4209a9456f9484e5106cd408a5",
"",
"mention"
],
[
"client",
"noStrudel",
"31990:266815e0c9210dfa324c6cba3573b14bee49da4209a9456f9484e5106cd408a5:1686066542546"
]
],
"content": "nostr:npub1ye5ptcxfyyxl5vjvdjar2ua3f0hynkjzpx552mu5snj3qmx5pzjscpknpr \n\nnext.nostrudel.ninja is not responding correctly to a CLOSED \"auth-required\" message on these three relays, i am just checking this and coracle now auths every time with the auth flow correctly structured according to nip-42 but nostrudel is not sending back an auth unless you open up the task manager and manually click the auth\n\nmy suspicion is that the other two relays there are also running teh same flow, so i think your code is not correctly handling... and the naive assumption is that \"always\" means it always responds with an auth response every time it receives an auth envelope, which it clearly doesn't even with the CLOSED \"auth-required\" message\n\nwould be great if this was fully working to spec\n\njust a side note, i've set up an \"auth requested\" flag in my websocket library now, so it only ever sends one per websocket connection... previously it was hammering the client with requests for the multiple req envelopes it was receiving, which i don't think is correct either, one socket, one auth, that is how the protocol is described, so i've made it so... i think that if it's done so that each one makes an auth request and each auth request generates a new auth challenge each time there is race conditions, and it's just unnecessary traffic... right answer or silence, is my philosophy\n\nin any case, please alter nostrudel's auth handling so it takes the CLOSED auth-required message as a prompt to auth, as it is specified in nip-42",
"sig": "969fb0438c58fc181473372284d334b2dd7d29da884adea877d724c854d4f74976aff3720a709e4d6d6f9825a7a49570312455a4289c91079effcf1a3ed0d0d0"
}