Snd-R / komf

Komga and Kavita metadata fetcher
MIT License
324 stars 19 forks source link

Java EOFException from Kavita.getLibraries #144

Closed CPU-Blanc closed 7 months ago

CPU-Blanc commented 7 months ago

Heyo. Trying to get discord notifications working but no matter what I do I end up with an error. I've tried using the example config but I'm getting an error there.

No matter what I try, I get the following stacktrace:

Exception in thread "komf-event-listener-1" java.io.EOFException: End of input
        at com.squareup.moshi.JsonUtf8Reader.nextNonWhitespace(JsonUtf8Reader.java:1146)
        at com.squareup.moshi.JsonUtf8Reader.doPeek(JsonUtf8Reader.java:339)
        at com.squareup.moshi.JsonUtf8Reader.peek(JsonUtf8Reader.java:208)
        at com.squareup.moshi.internal.NullSafeJsonAdapter.fromJson(NullSafeJsonAdapter.java:38)
        at com.squareup.moshi.JsonAdapter$2.fromJson(JsonAdapter.java:205)
        at com.squareup.moshi.JsonAdapter.fromJson(JsonAdapter.java:70)
        at org.snd.mediaserver.kavita.KavitaClient.getLibraries(KavitaClient.kt:333)
        at org.snd.mediaserver.kavita.KavitaMediaServerClientAdapter.getLibrary-lUCXapU(KavitaMediaServerClientAdapter.kt:90)
        at org.snd.mediaserver.NotificationService.webhookMessage-YU78aHo(NotificationService.kt:42)
        at org.snd.mediaserver.NotificationService.executeFor(NotificationService.kt:31)
        at org.snd.mediaserver.kavita.KavitaEventListener.processEvents(KavitaEventListener.kt:131)
        at org.snd.mediaserver.kavita.KavitaEventListener.processNotification$lambda$4(KavitaEventListener.kt:94)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.base/java.lang.Thread.run(Unknown Source)

Forgive my ignorance, but it would appear as though there's some sort of issue between komf getting the correct library ID or json response from Kavita, and nothing actually related to the template or anything like that.

Running both applications within docker. Latest komf 0.33.2 and Kavita 0.8.0.1

Any help would be appreciated!