cssxsh / pixiv-helper

Mirai Console 插件开发计划
https://github.com/users/cssxsh/projects/4
GNU Affero General Public License v3.0
124 stars 9 forks source link

缓存图片失败 #101

Closed ghost closed 1 year ago

ghost commented 1 year ago

Mirai consosle: 2.13.0 OS: Ubuntu 20.04.5 LTS Runtime: OpenJDK 64-Bit Server VM 18.0.2.1

2022-11-15 14:00:38 W/pixiv-cache-loader: [https://i.pximg.net/img-original/img/2022/01/03/13/14/22/95252478_p0.jpg]下载失败
xyz.cssxsh.pixiv.exception.NoCacheException: No Cache HttpResponse[https://i.pixiv.re/img-original/img/2022/01/03/13/14/22/95252478_p0.jpg#bytes=523264-1046527, 206 ] {age=[0], alt-svc=[h3=":443"; ma=86400, h3-29=":443"; ma=86400], cache-control=[max-age=31536000], cf-cache-status=[HIT], cf-ray=[76a8838c4a995307-LAX], content-length=[523264], content-range=[bytes 523264-1046527/12594203], content-type=[image/jpeg], date=[Tue, 15 Nov 2022 14:00:34 GMT], expires=[Tue, 14 Nov 2023 01:57:36 GMT], last-modified=[Mon, 03 Jan 2022 04:14:22 GMT], nel=[{"success_fraction":0,"report_to":"cf-nel","max_age":604800}], report-to=[{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=7k3VmFETPPvbnkCfJKO%2Fv2qFeZaOwhVmbFsyPKbnwiU4pfqS1I6c%2BHLGC%2BGjdU%2BzRV1DyQiLt4G74nPgGcQB5yCIedKC4lY77lnb1Em1MDfB8aYIb4YT4LTy1LUF"}],"group":"cf-nel","max_age":604800}], server=[cloudflare], strict-transport-security=[max-age=31536000; includeSubDomains], vary=[Accept-Encoding], via=[HTTP/2.0 PixivCatFRA, http/1.1 f010 (second)], x-cache-status=[MISS], x-content-type-options=[nosniff], x-proxied-by=[Pixiv.CatFRA]}
        at pixiv-helper-2.0.0-RC.mirai2.jar[private]//xyz.cssxsh.pixiv.tool.PixivDownloader$range$2.invokeSuspend(PixivDownloader.kt:108)
        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
        at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
        at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42)
        at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95)
        at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
cssxsh commented 1 year ago

概率性事件,图片是分发在各个服务器的,有时候当前服务器没有或者更过期,就会报这个错