使用 /lolicon adv 命令的时候,会无法返回图片,显示网络超时。
但常规的 /lolicon get 可以正常返回图片,看日志里似乎显示使用 /lolicon adv 时拉取的是 i.pixiv.cat 而不是 i.pixiv.re,感觉像是被墙了,大佬帮忙看一下是哪里的问题。
下面是错误日志。
2022-04-14 17:02:04 V/Bot.16********: [测试(5421******)] 红豆泥(1*********) -> /lolicon adv {"num":3}
2022-04-14 17:02:04 I/Lolicon: {"r18":0,"num":3,"uid":null,"keyword":"","tag":null,"size":null,"proxy":"i.pixiv.re","dataAfter":null,"dataBefore":null,"dsc":null}
2022-04-14 17:02:05 I/Lolicon: {"error":"","data":[{"pid":79230183,"p":0,"uid":4370,"title":"ジョンストン","author":"DD","r18":false,"width":1250,"height":1250,"tags":["艦隊これくしょん","舰队collection","艦これ","舰C","ジョンストン","Johnston"],"ext":"png","uploadDate":1580591236000,"urls":{"original":"https://i.pixiv.cat/img-original/img/2020/02/02/06/07/16/79230183_p0.png"}},{"pid":85682602,"p":0,"uid":577853,"title":"オイゲンさん放熱中","author":"もふナマコ","r18":false,"width":707,"height":1000,"tags":["艦これ","舰C","艦隊これくしょん","舰队collection","プリンツ・オイゲン","欧根亲王","尻 神様","尻神样","パイオツ・オイゲン","欧派亲王","汗","sweat","パンツ!パンツです!","内裤!是内裤!"],"ext":"jpg","uploadDate":1605414160000,"urls":{"original":"https://i.pixiv.cat/img-original/img/2020/11/15/13/22/40/85682602_p0.jpg"}},{"pid":85886968,"p":0,"uid":2641586,"title":"Mona (モナ)","author":"真紗弥光一","r18":false,"width":1800,"height":2546,"tags":["原神","Genshin Impact","GenshinImpact","Mona(GenshinImpact)","アストローギスト・モナ・メギストス","阿斯托洛吉斯·莫 娜·梅姬斯图斯","モナ(原神)","莫娜(原神)","モナ","Mona","莫娜"],"ext":"jpg","uploadDate":1606230010000,"urls":{"original":"https://i.pixiv.cat/img-original/img/2020/11/25/00/00/10/85886968_p0.jpg"}}]}
2022-04-14 17:02:15 E/Lolicon: io.ktor.network.sockets.ConnectTimeoutException: Connect timeout has expired [url=https://i.pixiv.cat/img-original/img/2020/02/02/06/07/16/79230183_p0.png, connect_timeout=unknown ms]
io.ktor.network.sockets.ConnectTimeoutException: Connect timeout has expired [url=https://i.pixiv.cat/img-original/img/2020/02/02/06/07/16/79230183_p0.png, connect_timeout=unknown ms]
at io.ktor.client.features.HttpTimeoutKt.ConnectTimeoutException(HttpTimeout.kt:183)
at io.ktor.client.engine.okhttp.OkUtilsKt.mapOkHttpException(OkUtils.kt:77)
at io.ktor.client.engine.okhttp.OkUtilsKt.access$mapOkHttpException(OkUtils.kt:1)
at io.ktor.client.engine.okhttp.OkHttpCallback.onFailure(OkUtils.kt:39)
at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:525)
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)
Caused by: java.net.SocketTimeoutException: connect timed out
at java.base/java.net.PlainSocketImpl.waitForConnect(Native Method)
at java.base/java.net.PlainSocketImpl.socketConnect(Unknown Source)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.base/java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.base/java.net.SocksSocketImpl.connect(Unknown Source)
at java.base/java.net.Socket.connect(Unknown Source)
at okhttp3.internal.platform.Platform.connectSocket(Platform.kt:128)
at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.kt:295)
at okhttp3.internal.connection.RealConnection.connect(RealConnection.kt:207)
at okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.kt:226)
at okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.kt:106)
at okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.kt:74)
at okhttp3.internal.connection.RealCall.initExchange$okhttp(RealCall.kt:255)
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:32)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:517)
... 3 more
2022-04-14 17:03:01 V/Bot.16********: Group(5421******) <- 网络连接失败/超时或图片已被删除,之后再试试吧
>
2022-04-14 17:03:11 E/Lolicon: io.ktor.network.sockets.ConnectTimeoutException: Connect timeout has expired [url=https://i.pixiv.cat/img-original/img/2020/11/15/13/22/40/85682602_p0.jpg, connect_timeout=unknown ms]
io.ktor.network.sockets.ConnectTimeoutException: Connect timeout has expired [url=https://i.pixiv.cat/img-original/img/2020/11/15/13/22/40/85682602_p0.jpg, connect_timeout=unknown ms]
at io.ktor.client.features.HttpTimeoutKt.ConnectTimeoutException(HttpTimeout.kt:183)
at io.ktor.client.engine.okhttp.OkUtilsKt.mapOkHttpException(OkUtils.kt:77)
at io.ktor.client.engine.okhttp.OkUtilsKt.access$mapOkHttpException(OkUtils.kt:1)
at io.ktor.client.engine.okhttp.OkHttpCallback.onFailure(OkUtils.kt:39)
at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:525)
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)
Caused by: java.net.SocketTimeoutException: connect timed out
at java.base/java.net.PlainSocketImpl.waitForConnect(Native Method)
at java.base/java.net.PlainSocketImpl.socketConnect(Unknown Source)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.base/java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.base/java.net.SocksSocketImpl.connect(Unknown Source)
at java.base/java.net.Socket.connect(Unknown Source)
at okhttp3.internal.platform.Platform.connectSocket(Platform.kt:128)
at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.kt:295)
at okhttp3.internal.connection.RealConnection.connect(RealConnection.kt:207)
at okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.kt:226)
at okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.kt:106)
at okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.kt:74)
at okhttp3.internal.connection.RealCall.initExchange$okhttp(RealCall.kt:255)
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:32)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:517)
... 3 more
2022-04-14 17:03:11 V/Bot.16********: Group(5421******) <- 网络连接失败/超时或图片已被删除,之后再试试吧
2022-04-14 17:03:21 E/Lolicon: io.ktor.network.sockets.ConnectTimeoutException: Connect timeout has expired [url=https://i.pixiv.cat/img-original/img/2020/11/25/00/00/10/85886968_p0.jpg, connect_timeout=unknown ms]
io.ktor.network.sockets.ConnectTimeoutException: Connect timeout has expired [url=https://i.pixiv.cat/img-original/img/2020/11/25/00/00/10/85886968_p0.jpg, connect_timeout=unknown ms]
at io.ktor.client.features.HttpTimeoutKt.ConnectTimeoutException(HttpTimeout.kt:183)
at io.ktor.client.engine.okhttp.OkUtilsKt.mapOkHttpException(OkUtils.kt:77)
at io.ktor.client.engine.okhttp.OkUtilsKt.access$mapOkHttpException(OkUtils.kt:1)
at io.ktor.client.engine.okhttp.OkHttpCallback.onFailure(OkUtils.kt:39)
at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:525)
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)
Caused by: java.net.SocketTimeoutException: connect timed out
at java.base/java.net.PlainSocketImpl.waitForConnect(Native Method)
at java.base/java.net.PlainSocketImpl.socketConnect(Unknown Source)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.base/java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.base/java.net.SocksSocketImpl.connect(Unknown Source)
at java.base/java.net.Socket.connect(Unknown Source)
at okhttp3.internal.platform.Platform.connectSocket(Platform.kt:128)
at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.kt:295)
at okhttp3.internal.connection.RealConnection.connect(RealConnection.kt:207)
at okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.kt:226)
at okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.kt:106)
at okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.kt:74)
at okhttp3.internal.connection.RealCall.initExchange$okhttp(RealCall.kt:255)
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:32)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:517)
... 3 more
2022-04-14 17:03:21 V/Bot.16********: Group(5421******) <- 网络连接失败/超时或图片已被删除,之后再试试吧
2022-04-14 17:03:21 E/Lolicon: java.lang.IllegalArgumentException: message is empty
java.lang.IllegalArgumentException: message is empty
at net.mamoe.mirai.internal.contact.GroupImpl.sendMessage(GroupImpl.kt:183)
at net.mamoe.mirai.console.command.MemberCommandSender.sendMessage$suspendImpl(CommandSender.kt:583)
at net.mamoe.mirai.console.command.MemberCommandSender.sendMessage(CommandSender.kt)
at mirai-console-lolicon-5.0.0-beta.7.mirai.jar//io.github.samarium150.mirai.plugin.lolicon.command.Lolicon.advanced(Lolicon.kt:215)
at mirai-console-lolicon-5.0.0-beta.7.mirai.jar//io.github.samarium150.mirai.plugin.lolicon.command.Lolicon$advanced$1.invokeSuspend(Lolicon.kt)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
2022-04-14 17:05:04 V/Bot.16********: [测试(5421******)] 红豆泥(1*********) -> /lolicon get 明日方舟
2022-04-14 17:05:04 I/Lolicon: request body: {"r18":2,"num":1,"uid":[],"keyword":"","tag":[["明日方舟"]],"size":["regular"],"proxy":"https://i.pixiv.re","dataAfter":null,"dataBefore":null,"dsc":null}
2022-04-14 17:05:16 I/Lolicon: {"error":"","data":[{"pid":84975440,"p":0,"uid":14163270,"title":"三马开日","author":"乐 竹","r18":true,"width":3379,"height":2160,"tags":["R-18","绘画","painting","明日方舟","Arknights","临光","Nearl","瑕光","Blemishine","鞭刃","Whislash","R18","百合","yuri","群交","アークナイツ"],"ext":"jpg","uploadDate":1602516187000,"urls":{"regular":"https://i.pixiv.re/img-master/img/2020/10/13/00/23/07/84975440_p0_master1200.jpg"}}]}
2022-04-14 17:05:16 V/Bot.16********: Group(5421******) <- 标题: 三马开日\n作者: 乐竹 (uid: 14163270)\n标签: [R-18, 绘画, painting, 明日方舟, Arknights, 临光, Nearl, 瑕光, Blemishine, 鞭刃, Whislash, R18, 百合, yuri, 群交, アークナイツ]\n链 接: https://pixiv.net/artworks/84975440
2022-04-14 17:05:20 V/Bot.16********: Group(5421******) <- [mirai:image:{8054EFA9-E0F8-4F94-A309-7A5FE3C3D2ED}.jpg]