matcha icon indicating copy to clipboard operation
matcha copied to clipboard

BUG: JMAP Watch ignores errors from Listen()

Open andrinoff opened this issue 7 months ago • 2 comments

Describe the bug

In backend/jmap/jmap.go, the Watch function starts a goroutine that calls es.Listen() but ignores its return value. If the event source fails (e.g. network error), it will fail silently.

To reproduce

N/A (Logic observation)

Expected behavior

Log errors from es.Listen() or find a way to notify the user/reconnect.

Additional context

	go func() {
		defer close(ch)
		_ = es.Listen()
	}()

andrinoff avatar Apr 16 '26 13:04 andrinoff

This has had no activity for 30 days. It will be closed in 14 days unless updated. Comment or remove the stale label to keep it open.

floatpanebot avatar May 17 '26 05:05 floatpanebot

Closing due to inactivity. Reopen if still relevant.

floatpanebot avatar May 31 '26 06:05 floatpanebot