Skip to content

fix: register noop handlers for missing Kavita SignalR events#315

Open
xxxarmitagexxx wants to merge 2 commits into
Snd-R:masterfrom
xxxarmitagexxx:fix/kavita-chapter-updated-signalr
Open

fix: register noop handlers for missing Kavita SignalR events#315
xxxarmitagexxx wants to merge 2 commits into
Snd-R:masterfrom
xxxarmitagexxx:fix/kavita-chapter-updated-signalr

Conversation

@xxxarmitagexxx

@xxxarmitagexxx xxxarmitagexxx commented Jul 7, 2026

Copy link
Copy Markdown

Kavita's SignalR hub sends several events that Komf has no handler registered for. The Microsoft SignalR client logs errors on every occurrence:

WARN:  Failed to find handler for 'ChapterUpdated' method.
ERROR: Failed to bind arguments received in invocation 'null' of
       'ChapterUpdated'. Invocation provides 1 argument(s) but
       target expects 0.

No functional impact — REST API metadata updates still succeed — but the errors pollute logs continuously.

Fixes #314

Changes:

  • Add ChapterUpdatedEvent model matching Kavita's payload (SeriesId: Int, ChapterId: Int) following the existing event model pattern
  • Register a noop handler for ChapterUpdated in registerInvocations() in KavitaEventHandler
  • Register noop handlers for ReadingSessionUpdate and ReadingSessionClose which have the same issue

Complementary to #309, no compatibility issues.

Kavita sends a ChapterUpdated event with a payload containing SeriesId
and ChapterId, but Komf had no handler registered for it. The SignalR
client logged WARN/ERROR on every chapter update due to the argument
count mismatch (1 provided, 0 expected).

Add ChapterUpdatedEvent model matching Kavita's payload and register a
noop handler in registerInvocations() alongside the other ignored events.
@xxxarmitagexxx xxxarmitagexxx changed the title fix: register noop handler for Kavita's ChapterUpdated SignalR event fix: register noop handlers for missing Kavita SignalR events and guard blank localizedName Jul 8, 2026
@xxxarmitagexxx xxxarmitagexxx force-pushed the fix/kavita-chapter-updated-signalr branch from 4326c16 to d161b38 Compare July 8, 2026 04:24
@xxxarmitagexxx xxxarmitagexxx changed the title fix: register noop handlers for missing Kavita SignalR events and guard blank localizedName fix: register noop handlers for missing Kavita SignalR events Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ChapterUpdate API call response error with Kavita

1 participant