bitvora / haven

High Availability Vault for Events on Nostr
75 stars 14 forks source link

feat: auto-prefix relay URLs with "wss://" and change order of relay list retrieval in config.go #4

Closed HolgerHatGarKeineNode closed 1 month ago

HolgerHatGarKeineNode commented 1 month ago

Now the file is really taken if it is was specified. Of course there are now lots of errors and notices because there are relays in the large list that require Auth etc. The question is whether these relays could then be kicked out dynamically?

HolgerHatGarKeineNode commented 1 month ago
haven-relay  | 2024/09/23 20:57:41 error connecting to relay wss://nostr.dfaria.eu error opening websocket to 'wss://nostr.dfaria.eu': failed to dial: dial tcp: lookup nostr.dfaria.eu: i/o timeout
haven-relay  | 2024/09/23 20:57:41 error connecting to relay wss://strfry.openbalance.app error opening websocket to 'wss://strfry.openbalance.app': failed to dial: dial tcp: lookup strfry.openbalance.app: i/o timeout
haven-relay  | 2024/09/23 20:57:41 error connecting to relay wss://relay.i9.eti.br error opening websocket to 'wss://relay.i9.eti.br': failed to dial: dial tcp: lookup relay.i9.eti.br: i/o timeout
haven-relay  | 2024/09/23 20:57:41 error connecting to relay wss://relay.degmods.com error opening websocket to 'wss://relay.degmods.com': failed to dial: dial tcp: lookup relay.degmods.com: i/o timeout
haven-relay  | 2024/09/23 20:57:41 🔫 blasted to wss://mastodon.cloud/api/v1/streaming
haven-relay  | 2024/09/23 20:57:41 🔫 blasted to wss://relay.hamnet.io
haven-relay  | 2024/09/23 20:57:41 🔫 blasted to wss://nostr.decentony.com
haven-relay  | 2024/09/23 20:57:43 NOTICE from wss://nostrja-kari-nip50.heguro.com: 'Error: non-text message Ping([])'
haven-relay  | 2024/09/23 20:57:45 🔫 blasted to wss://eosla.com
haven-relay  | 2024/09/23 20:57:45 🔫 blasted to wss://ragnar-relay.com
haven-relay  | 2024/09/23 20:57:45 🔫 blasted to wss://nostr.easydns.ca
haven-relay  | 2024/09/23 20:57:46 🔫 blasted to wss://relay.nostr.bg
haven-relay  | 2024/09/23 20:57:46 🔫 blasted to wss://bits.lnbc.sk/nostrclient/api/v1/relay
haven-relay  | 2024/09/23 20:57:46 🔫 blasted to wss://relay.nostrid.com
haven-relay  | 2024/09/23 20:57:57 NOTICE from wss://nostrja-kari-nip50.heguro.com: 'Error: non-text message Ping([])'

I've just used the whole list from here: https://api.nostr.watch/v1/online

:smile:

HolgerHatGarKeineNode commented 1 month ago

this also fixes #5

barrydeen commented 1 month ago

won't this break all the .envs and the existing examples because they don't have wss?