Infinite error loop on fetchLatestEventsPerAuthor
SnowCait opened this issue · 1 comments
SnowCait commented
fetchLatestEventsPerAuthor
sometimes repeats to reconnect to relay and gets "WebSocket error".
Then its iterator doesn't complete.
The frequency of occurrence seems to increase in proportion to the number of authors.
Log (Deno):
https://github.com/SnowCait/nostr-japanese-users/actions/runs/8283670090/job/22667396273#step:5:144
Reproduction code (Browser):
https://github.com/SnowCait/svelte-sandbox/blob/92078b270e50cd5f9d3dad3b4eff3b7f382ea172/nostr-fetch/src/routes/%2Bpage.svelte
jiftechnify commented
The root cause of this issue was never ending fetchLatestEventsPerAuthor
if authors
array have duplicated pubkey. It should be fixed by #241.