komf
komf copied to clipboard
Failed identification when a single source fails
Today, MangaUpdates had an issue with their image server, which makes all images return http 500. When trying to identify a manga with any source (not MangaUpdates), it still fails, and logs:
snd.komf.mediaserver.metadata.MetadataService$ProviderException: io.ktor.client.plugins.ServerResponseException: Server error(GET https://cdn.mangaupdates.com/image/<image-id>.jpg: 500 . Text: "<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx</center>
</body>
</html>
"
at snd.komf.mediaserver.metadata.MetadataService.getSeriesMetadata-O10NfXk(MetadataService.kt:395)
at snd.komf.mediaserver.metadata.MetadataService.access$getSeriesMetadata-O10NfXk(MetadataService.kt:51)
at snd.komf.mediaserver.metadata.MetadataService$getSeriesMetadata$1.invokeSuspend(MetadataService.kt)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:586)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:829)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:717)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:704)
Not just MangaUpdates. Here, it fails to get some info from BookWalker when manually identifying a series (from MangaDex).
14:24:11.267 [DefaultDispatcher-worker-4] ERROR snd.komf.mediaserver.metadata.MetadataService -- catching
snd.komf.mediaserver.metadata.MetadataService$ProviderException: io.ktor.client.plugins.ClientRequestException: Client request(GET https://global.bookwalker.jp/search/?word=<manga name>&;qcat=2&np=0) invalid: 403 . Text: "<html>
<head><title>403 Forbidden</title></head>
<body>
<center><h1>403 Forbidden</h1></center>
</body>
</html>
"
at snd.komf.mediaserver.metadata.MetadataService.matchSeries(MetadataService.kt:234)
at snd.komf.mediaserver.metadata.MetadataService.access$matchSeries(MetadataService.kt:51)
at snd.komf.mediaserver.metadata.MetadataService$matchSeries$1.invokeSuspend(MetadataService.kt)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:586)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:829)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:717)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:704)
Caused by: io.ktor.client.plugins.ClientRequestException: Client request(GET https://global.bookwalker.jp/search/?word=<manga name>&;qcat=2&np=0) invalid: 403 . Text: "<html>
<head><title>403 Forbidden</title></head>
<body>
<center><h1>403 Forbidden</h1></center>
</body>
</html>
"
at io.ktor.client.plugins.DefaultResponseValidationKt$addDefaultResponseValidation$1$1.invokeSuspend(DefaultResponseValidation.kt:52)
I think this should not affect when trying to set data from other sources.