You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Static mirroring silently drops all events when mirror has no limits configured #567
Describe the bug
Static mirroring silently discards all events when a mirror entry doesn't have a limits block configured. The worker connects and subscribes successfully. No errors in logs, but nothing gets stored.
To Reproduce
Add a mirror entry to settings without a limits block:
mirroring:
static:
address: wss://some-relay.com
Start nostream
Watch the mirror connect. Events come in but none are stored in the database
Expected behavior
Events from the mirrored relay should be stored. Missing limits should just mean no overrides, not a crash.
Screenshots
N/A
System (please complete the following information):
OS: Any
Platform: docker / standalone
Version: latest
Logs
No errors logged. That's one part of the problem. The TypeError from this.config.limits.event is swallowed by the try/catch in the subscribe loop, so the failure is completely silent.
Additional context
Root cause is line 175 in src/app/static-mirroring-worker.ts: const eventLimitOverrides = this.config.limits.event ?? {}
Mirror.limits is typed as optional. So when it's not configured, .event throws.
The default settings ship with static: [] and no limits key. Any operator who adds a mirror without explicitly setting limits: hits this.
Activity
tharu-jwd commentedon Apr 22, 2026
Hey @cameri , is it okay if I fix this and raise a PR ?
cameri commentedon Apr 25, 2026
thank you @tharu-jwd