【涩图插件喜加一】mirai-console-lolicon
-
有哪位可以帮忙看一下嘛...这个报错
2023-01-27 20:05:20 W/Lolicon: Exception in executing command
[mirai:source:ids=[12033], internalIds=[-1364358835], from group 2829018941 to 574852146 at 1674821117]lolicon get
java.lang.IllegalArgumentException: Unsupported image type (mirai) for ExternalResource net.mamoe.mirai.internal.utils.ExternalResourceImplByFile@6a7ab074, considering use gif/png/bmp/jpg format. image header: 3C 21 44 4F 43 54 59 50 45 20 68 74 6D 6C 3E 0A 3C 68 74 6D 6C 3E 0A 20 20 20 20 3C 68 31
at net.mamoe.mirai.internal.message.image.ImageDecoderKt.calculateImageInfo(ImageDecoder.kt:159)
at net.mamoe.mirai.internal.contact.CommonGroupImpl$uploadImage$lambda-16$$inlined$runBIO$1.invoke(CoroutineUtils.kt:23)
at kotlinx.coroutines.InterruptibleKt.runInterruptibleInExpectedContext(Interruptible.kt:51)
at kotlinx.coroutines.InterruptibleKt.access$runInterruptibleInExpectedContext(Interruptible.kt:1)
at kotlinx.coroutines.InterruptibleKt$runInterruptible$2.invokeSuspend(Interruptible.kt:43)
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) -
This post is deleted! -
我也是群员用不了,群员也给权限了
-
就是有些图片后台加载出来了但是发不出来
不知道为什么 -
今天刚用这个插件然后出了问题:发了指令不出图,但是两次错误原因完全不同(QQ号已做处理)
exception 1:2023-01-29 01:24:00 V/Bot.: [通辽舞萌dx交流群()] 鸟了白future再换头像() -> llc get 明日方舟 2023-01-29 01:24:01 V/Bot.: Group(1) <- [mirai:quote:[mirai:source:ids=[116301], internalIds=[-1808303918], from group 383693339 to 875479061 at 1674926640], content=llc get 明日方舟]正在获取图片... 2023-01-29 01:24:01 I/Lolicon: {"error":"","data":[{"pid":100297782,"p":0,"uid":3483539,"title":"リィン","author":"Hudeci(ふでし)","r18":false,"width":2000,"height":2800,"tags":["アークナイツ","明日方舟","Arknights","リィ ン(アークナイツ)","令(明日方舟)","令","Order","竜娘","龙娘"],"ext":"jpg","aiType":0,"uploadDate":1659847663000,"urls":{"regular":"https://i.pixiv.re/img-master/img/2022/08/07/13/47/43/100297782_p0_master1200.jpg"}}]} 2023-01-29 01:24:03 W/Lolicon: Exception in executing command `[mirai:source:ids=[116301], internalIds=[-1808303918], from group 383693339 to 875479061 at 1674926640]llc get 明日方舟` java.lang.IllegalArgumentException: Unsupported image type (mirai) for ExternalResource net.mamoe.mirai.internal.utils.ExternalResourceImplByFile@4d8803d1, considering use gif/png/bmp/jpg format. image header: 3C 21 44 4F 43 54 59 50 45 20 68 74 6D 6C 3E 0A 3C 68 74 6D 6C 3E 0A 20 20 20 20 3C 68 31 at net.mamoe.mirai.internal.message.image.ImageDecoderKt.calculateImageInfo(ImageDecoder.kt:159) at net.mamoe.mirai.internal.contact.CommonGroupImpl$uploadImage$lambda-16$$inlined$runBIO$1.invoke(CoroutineUtils.kt:23) at kotlinx.coroutines.InterruptibleKt.runInterruptibleInExpectedContext(Interruptible.kt:51) at kotlinx.coroutines.InterruptibleKt.access$runInterruptibleInExpectedContext(Interruptible.kt:1) at kotlinx.coroutines.InterruptibleKt$runInterruptible$2.invokeSuspend(Interruptible.kt:43) 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)
exception 2:
2023-01-29 01:13:44 V/Bot.: [通辽舞萌dx交流群()] 鸟了白future再换头像() -> llc 来一张 oshama 2023-01-29 01:13:44 I/Lolicon: request body: {"r18":0,"num":1,"uid":[],"keyword":"","tag":[["oshama"]],"size":["regular"],"proxy":"https://i.pixiv.re","dataAfter":null,"dataBefore":null,"dsc":null} 2023-01-29 01:13:45 V/Bot.3: Group() <- [mirai:quote:[mirai:source:ids=[116270], internalIds=[-717864385], from group to at 1674926024], content=llc 来一张 oshama]正在获取图片... 2023-01-29 01:13:55 E/Lolicon: io.ktor.client.network.sockets.SocketTimeoutException: Socket timeout has expired [url=https://api.lolicon.app/setu/v2, socket_timeout=unknown] ms io.ktor.client.network.sockets.SocketTimeoutException: Socket timeout has expired [url=https://api.lolicon.app/setu/v2, socket_timeout=unknown] ms at mirai-console-lolicon-6.0.7.mirai2.jar[private]//io.ktor.client.plugins.HttpTimeoutKt.SocketTimeoutException(HttpTimeout.kt:235) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//io.ktor.client.engine.okhttp.OkUtilsKt.mapOkHttpException(OkUtils.kt:79) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//io.ktor.client.engine.okhttp.OkUtilsKt.access$mapOkHttpException(OkUtils.kt:1) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//io.ktor.client.engine.okhttp.OkHttpCallback.onFailure(OkUtils.kt:39) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:525) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) at java.base/java.lang.Thread.run(Thread.java:1589) Caused by: java.net.SocketTimeoutException: timeout at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.http2.Http2Stream$StreamTimeout.newTimeoutException(Http2Stream.kt:675) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.http2.Http2Stream$StreamTimeout.exitAndThrowIfTimedOut(Http2Stream.kt:684) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.http2.Http2Stream.takeHeaders(Http2Stream.kt:143) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.http2.Http2ExchangeCodec.readResponseHeaders(Http2ExchangeCodec.kt:96) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.connection.Exchange.readResponseHeaders(Exchange.kt:106) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.kt:79) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:34) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:517) ... 3 more
不是很清楚为什么。
然后关于tag的问题:tag是只能找作品类别的tag而并非角色的tag吗? -
@NoNameGMM 大概是图片的问题,这个错误每张图都会出现吗
-
@MC57348 E1是图片问题,E2是网络问题
-
@Samarium150 不是每张都会出现 但是后台显示下载了图片 却一直不发出来
-
@NoNameGMM 大概是因为没有检查404错误的原因,回头有时间修一下
-
@Samarium150 嗯好的谢谢~
-
@Samarium150
然后现在报错这个问题2023-02-01 11:15:51 V/Bot.: [通辽舞萌dx交流群()] Cinnamon「专注于12+」() -> llc get 泳装 2023-02-01 11:15:51 V/Bot.: Group() <- [mirai:quote:[mirai:source:ids=[118262], internalIds=[1318792613], from group to 875479061 at 1675221350], content=llc get 泳装]让我找找哈... 2023-02-01 11:15:51 E/Lolicon: java.net.UnknownHostException: 不知道这样的主机。 (api.lolicon.app) java.net.UnknownHostException: 不知道这样的主机。 (api.lolicon.app) at java.base/java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method) at java.base/java.net.Inet6AddressImpl.lookupAllHostAddr(Inet6AddressImpl.java:52) at java.base/java.net.InetAddress$PlatformResolver.lookupByName(InetAddress.java:1059) at java.base/java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1668) at java.base/java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:1003) at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1658) at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1524) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.Dns$Companion$DnsSystem.lookup(Dns.kt:49) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.connection.RouteSelector.resetNextInetSocketAddress(RouteSelector.kt:164) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.connection.RouteSelector.nextProxy(RouteSelector.kt:129) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.connection.RouteSelector.next(RouteSelector.kt:71) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.kt:205) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.kt:106) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.kt:74) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.connection.RealCall.initExchange$okhttp(RealCall.kt:255) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:32) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201) at mirai-console-lolicon-6.0.7.mirai2.jar[private]//okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:517) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) at java.base/java.lang.Thread.run(Thread.java:1589)
-
@MC57348 你的网络看起来确实不太行
-
@Samarium150 确实,我关了梯子好像好点
-
@Samarium150 我换了一个网络之后,使用forward方式来输出图片,在控制台是可以显示出来有这个行动以及撤回操作,但是QQ群当中只会出现正在寻找的消息,无法将图片发送至群里。目前带有R18的图片基本上都输出不出来
2023-02-07 00:13:26 V/Bot.: [] 鸟了白future() -> llc get 明日方舟&r18 2023-02-07 00:13:26 V/Bot.: Group() <- [mirai:quote:[mirai:source:ids=[121551], internalIds=[-549473486], from group 3 to 8 at 1675700006], content=llc get 明日方舟&r18]让我找找哈... 2023-02-07 00:13:27 I/Lolicon: {"error":"","data":[{"pid":91452431,"p":0,"uid":24297867,"title":"静谧夜雨","author":"高 速公鹿","r18":false,"width":4000,"height":3000,"tags":["R-18","絮雨","Whisperain","明日方舟","Arknights","泳装","swimsuit","R18","液体","liquid","巨乳","large breasts","高潮","ウィスパーレイン(アークナイツ)","絮雨(明日方舟)","特米米泳装"],"ext":"jpg","aiType":0,"uploadDate":1627058101000,"urls":{"regular":"https://i.pixiv.re/img-master/img/2021/07/24/01/35/01/91452431_p0_master1200.jpg"}}]} 2023-02-07 00:13:33 V/Bot.3: Group(8) <- ForwardMessage(preview=[怪怪的bot: 标题: 静谧夜雨\n作者: 高速 公鹿 (uid: 24297867)\n标签: [R-18, 絮雨, Whisperain, 明日方舟, Arknights, 泳装, swimsuit, R18, 液体, liquid, 巨乳, large breasts, 高潮, ウィスパーレイン(アークナイツ), 絮雨(明日方舟), 特米米泳装]\n链接: https://pixiv.net/artworks/91452431\n代理链接:https://i.pixiv.re/img-master/img/2021/07/24/01/35/01/91452431_p0_master1200.jpg, 怪怪的bot: [图片]], title=神秘的聊天记录, brief=[Lolicon], source=聊天记录, summary=查看2条转发消息, nodeList=[Node(senderId=3509197003, time=1675700010, senderName=怪怪的bot, messageChain=标题: 静谧夜雨\n作者: 高速公鹿 (uid: 24297867)\n标签: [R-18, 絮雨, Whisperain, 明日方舟, Arknights, 泳装, swimsuit, R18, 液体, liquid, 巨乳, large breasts, 高潮, ウィスパーレイン(アークナイツ), 絮 雨(明日方舟), 特米米泳装]\n链接: https://pixiv.net/artworks/91452431\n代理链接:https://i.pixiv.re/img-master/img/2021/07/24/01/35/01/91452431_p0_master1200.jpg), Node(senderId=3, time=1675700011, senderName=怪怪的bot, messageChain=[mirai:image:{875B12D6-6840-0384-4577-2BB45EF872B3}.jpg, width=1200, height=900, size=795715, type=JPG, isEmoji=false])]) 2023-02-07 00:13:33 I/Lolicon: Group(8)进入冷却 2023-02-07 00:13:33 I/Lolicon: Group(8)NOTIFICATION已撤回
-
@MC57348 如果私聊没问题,那么就是风控
-
@Samarium150 哦干忘了风控这回事,感谢
-
@Samarium150 按性质风控吗这, 正常一点的能发出来, 太过分的图片就发不出来啊这
-
@mckyby 这就只能问tx了
-
昨天还好好的这是什么问题
-
我把它放进了plugins里后出现了以下代码,用的是2.14.0的mirai和mirai compose
2023-02-28 18:18:11 E/Lolicon java.lang.NoClassDefFoundError: io/ktor/client/plugins/contentnegotiation/ContentNegotiation
java.lang.NoClassDefFoundError: io/ktor/client/plugins/contentnegotiation/ContentNegotiation
at io.github.samarium150.mirai.plugin.lolicon.MiraiConsoleLolicon$onEnable$1.invoke(MiraiConsoleLolicon.kt:64)
at io.github.samarium150.mirai.plugin.lolicon.MiraiConsoleLolicon$onEnable$1.invoke(MiraiConsoleLolicon.kt:57)
at io.ktor.client.HttpClientKt.HttpClient(HttpClient.kt:41)
at io.github.samarium150.mirai.plugin.lolicon.MiraiConsoleLolicon.onEnable(MiraiConsoleLolicon.kt:57)
at net.mamoe.mirai.console.internal.plugin.JvmPluginInternal.internalOnEnable$mirai_console(JvmPluginInternal.kt:113)
at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.enable(BuiltInJvmPluginLoaderImpl.kt:158)
at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.enable(JvmPluginLoader.kt)
at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.enable(JvmPluginLoader.kt:36)
at net.mamoe.mirai.console.plugin.PluginManager.enablePlugin(PluginManager.kt:129)
at net.mamoe.mirai.console.internal.plugin.PluginManagerImpl.enableAllLoadedPlugins$mirai_console(PluginManagerImpl.kt:172)
at net.mamoe.mirai.console.internal.MiraiConsoleImplementationBridge.doStart$mirai_console(MiraiConsoleImplementationBridge.kt:214)
at net.mamoe.mirai.console.MiraiConsoleImplementation$Companion.start(MiraiConsoleImplementation.kt:277)
at com.youngerhousea.mirai.compose.EntryPointKt$startApplication$1$1$1$1.invokeSuspend(EntryPoint.kt:34)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
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.lang.ClassNotFoundException: io.ktor.client.plugins.contentnegotiation.ContentNegotiation
at net.mamoe.mirai.console.internal.plugin.JvmPluginClassLoader.findClass$mirai_console(JvmPluginClassLoader.kt:110)
at net.mamoe.mirai.console.internal.plugin.JvmPluginClassLoader.findClass(JvmPluginClassLoader.kt:51)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
... 18 more