komf
komf copied to clipboard
Intermittent SSLException: Unsupported or unrecognized SSL message from MangaDex provider
Bug Description
When fetching metadata for a series from the MangaDex provider, the process sometimes fails with an SSLException after a number of successful requests. The issue appears to be intermittent and occurs during the fetching of individual book metadata.
Expected Behavior Komf would skip the particular book instead throwing exception and not updating the rest of the series.
Example The following log is produced when searching for "機動戦士ガンダム サンダーボルト" via userscript, a direct trigger via http API would behave the same.
Logs
komf | 01:33:57.473 [DefaultDispatcher-worker-4] INFO snd.komf.mediaserver.metadata.MetadataService -- (MANGADEX) fetching metadata for book 21
komf | 01:33:57.474 [OkHttp https://uploads.mangadex.org/...] INFO http.logging -- --> GET https://uploads.mangadex.org/covers/c978f893-c764-42f4-9b04-fbf162e4d67a/35902844-fd32-44c0-a69a-93b24d4b1446.jpg.512.jpg
komf | 01:33:57.475 [OkHttp https://uploads.mangadex.org/...] INFO http.logging -- <-- 200 https://uploads.mangadex.org/covers/c978f893-c764-42f4-9b04-fbf162e4d67a/35902844-fd32-44c0-a69a-93b24d4b1446.jpg.512.jpg (1ms, 146314-byte body)
komf | 01:33:57.482 [DefaultDispatcher-worker-2] INFO snd.komf.mediaserver.metadata.MetadataService -- (MANGADEX) fetching metadata for book 22
komf | 01:33:57.483 [OkHttp https://uploads.mangadex.org/...] INFO http.logging -- --> GET https://uploads.mangadex.org/covers/c978f893-c764-42f4-9b04-fbf162e4d67a/48f6f17f-5e62-4180-8fc6-de88fdcab4f7.jpg.512.jpg
komf | 01:33:57.628 [OkHttp https://uploads.mangadex.org/...] INFO http.logging -- <-- HTTP FAILED: javax.net.ssl.SSLException: Unsupported or unrecognized SSL message
komf | 01:33:59.880 [OkHttp https://uploads.mangadex.org/...] INFO http.logging -- --> GET https://uploads.mangadex.org/covers/c978f893-c764-42f4-9b04-fbf162e4d67a/48f6f17f-5e62-4180-8fc6-de88fdcab4f7.jpg.512.jpg
komf | 01:33:59.947 [OkHttp https://uploads.mangadex.org/...] INFO http.logging -- <-- HTTP FAILED: javax.net.ssl.SSLException: Unsupported or unrecognized SSL message
komf | 01:34:04.905 [OkHttp https://uploads.mangadex.org/...] INFO http.logging -- --> GET https://uploads.mangadex.org/covers/c978f893-c764-42f4-9b04-fbf162e4d67a/48f6f17f-5e62-4180-8fc6-de88fdcab4f7.jpg.512.jpg
komf | 01:34:04.987 [OkHttp https://uploads.mangadex.org/...] INFO http.logging -- <-- HTTP FAILED: javax.net.ssl.SSLException: Unsupported or unrecognized SSL message
komf | 01:34:13.556 [OkHttp https://uploads.mangadex.org/...] INFO http.logging -- --> GET https://uploads.mangadex.org/covers/c978f893-c764-42f4-9b04-fbf162e4d67a/48f6f17f-5e62-4180-8fc6-de88fdcab4f7.jpg.512.jpg
komf | 01:34:13.626 [OkHttp https://uploads.mangadex.org/...] INFO http.logging -- <-- HTTP FAILED: javax.net.ssl.SSLException: Unsupported or unrecognized SSL message
komf | 01:34:13.636 [DefaultDispatcher-worker-3] ERROR snd.komf.mediaserver.metadata.MetadataService -- catching
komf | snd.komf.mediaserver.metadata.MetadataService$ProviderException: javax.net.ssl.SSLException: Unsupported or unrecognized SSL message
komf | at snd.komf.mediaserver.metadata.MetadataService.getBookMetadata(MetadataService.kt:271)
komf | at snd.komf.mediaserver.metadata.MetadataService.access$getBookMetadata(MetadataService.kt:51)
komf | at snd.komf.mediaserver.metadata.MetadataService$getBookMetadata$1.invokeSuspend(MetadataService.kt)