【涩图插件喜加一】mirai-console-lolicon
-
收不到来自lolicon api的返回,报了以下错误(不是连不上pixiv的问题)
-
@frankcwl 网络问题
-
@frankcwl 我也是报这样的错(悲
-
你好,请问这个怎么处理呀
-
我也出现了这种问题
-
2022-11-15 19:26:28 E/Lolicon: io.ktor.serialization.JsonConvertException: Illegal input io.ktor.serialization.JsonConvertException: Illegal input at mirai-console-lolicon-6.0.6.mirai2.jar[private]//io.ktor.serialization.kotlinx.KotlinxSerializationConverter.deserialize(KotlinxSerializationConverter.kt:79) at mirai-console-lolicon-6.0.6.mirai2.jar[private]//io.ktor.serialization.ContentConverterKt$deserialize$$inlined$map$1$2.emit(Emitters.kt:224) at kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$3.collect(SafeCollector.common.kt:115) at mirai-console-lolicon-6.0.6.mirai2.jar[private]//io.ktor.serialization.ContentConverterKt$deserialize$$inlined$map$1.collect(SafeCollector.common.kt:113) at kotlinx.coroutines.flow.FlowKt__ReduceKt.firstOrNull(Reduce.kt:243) at kotlinx.coroutines.flow.FlowKt.firstOrNull(Unknown Source) at mirai-console-lolicon-6.0.6.mirai2.jar[private]//io.ktor.serialization.ContentConverterKt.deserialize(ContentConverter.kt:128) at mirai-console-lolicon-6.0.6.mirai2.jar[private]//io.ktor.client.plugins.contentnegotiation.ContentNegotiation.convertResponse$ktor_client_content_negotiation(ContentNegotiation.kt:185) at mirai-console-lolicon-6.0.6.mirai2.jar[private]//io.ktor.client.plugins.contentnegotiation.ContentNegotiation$Plugin$install$2.invokeSuspend(ContentNegotiation.kt:210) at mirai-console-lolicon-6.0.6.mirai2.jar[private]//io.ktor.client.plugins.contentnegotiation.ContentNegotiation$Plugin$install$2.invoke(ContentNegotiation.kt) at mirai-console-lolicon-6.0.6.mirai2.jar[private]//io.ktor.client.plugins.contentnegotiation.ContentNegotiation$Plugin$install$2.invoke(ContentNegotiation.kt) at mirai-console-lolicon-6.0.6.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:123) at mirai-console-lolicon-6.0.6.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.proceed(SuspendFunctionGun.kt:81) at mirai-console-lolicon-6.0.6.mirai2.jar[private]//io.ktor.client.HttpClient$4.invokeSuspend(HttpClient.kt:173) at mirai-console-lolicon-6.0.6.mirai2.jar[private]//io.ktor.client.HttpClient$4.invoke(HttpClient.kt) at mirai-console-lolicon-6.0.6.mirai2.jar[private]//io.ktor.client.HttpClient$4.invoke(HttpClient.kt) at mirai-console-lolicon-6.0.6.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:123) at mirai-console-lolicon-6.0.6.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.proceed(SuspendFunctionGun.kt:81) at mirai-console-lolicon-6.0.6.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.proceedWith(SuspendFunctionGun.kt:91) at mirai-console-lolicon-6.0.6.mirai2.jar[private]//io.ktor.client.plugins.HttpCallValidator$Companion$install$2.invokeSuspend(HttpCallValidator.kt:138) at mirai-console-lolicon-6.0.6.mirai2.jar[private]//io.ktor.client.plugins.HttpCallValidator$Companion$install$2.invoke(HttpCallValidator.kt) at mirai-console-lolicon-6.0.6.mirai2.jar[private]//io.ktor.client.plugins.HttpCallValidator$Companion$install$2.invoke(HttpCallValidator.kt) at mirai-console-lolicon-6.0.6.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:123) at mirai-console-lolicon-6.0.6.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.proceed(SuspendFunctionGun.kt:81) at mirai-console-lolicon-6.0.6.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.execute$ktor_utils(SuspendFunctionGun.kt:101) at mirai-console-lolicon-6.0.6.mirai2.jar[private]//io.ktor.util.pipeline.Pipeline.execute(Pipeline.kt:77) at mirai-console-lolicon-6.0.6.mirai2.jar[private]//io.ktor.client.call.HttpClientCall.bodyNullable(HttpClientCall.kt:88) at mirai-console-lolicon-6.0.6.mirai2.jar//io.github.samarium150.mirai.plugin.lolicon.util.RequestHandlerKt.getAPIResponse(RequestHandler.kt:80) at mirai-console-lolicon-6.0.6.mirai2.jar//io.github.samarium150.mirai.plugin.lolicon.util.RequestHandlerKt$getAPIResponse$1.invokeSuspend(RequestHandler.kt) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at mirai-console-lolicon-6.0.6.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:138) at mirai-console-lolicon-6.0.6.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:112) at mirai-console-lolicon-6.0.6.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:14) at mirai-console-lolicon-6.0.6.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:62) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46) at mirai-console-lolicon-6.0.6.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:138) at mirai-console-lolicon-6.0.6.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:112) at mirai-console-lolicon-6.0.6.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:14) at mirai-console-lolicon-6.0.6.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:62) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46) at mirai-console-lolicon-6.0.6.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:138) at mirai-console-lolicon-6.0.6.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:112) at mirai-console-lolicon-6.0.6.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:14) at mirai-console-lolicon-6.0.6.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:62) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46) at mirai-console-lolicon-6.0.6.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:138) at mirai-console-lolicon-6.0.6.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:112) at mirai-console-lolicon-6.0.6.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:14) at mirai-console-lolicon-6.0.6.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:62) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46) at mirai-console-lolicon-6.0.6.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:138) at mirai-console-lolicon-6.0.6.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:112) at mirai-console-lolicon-6.0.6.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:14) at mirai-console-lolicon-6.0.6.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:62) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46) at mirai-console-lolicon-6.0.6.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:138) at mirai-console-lolicon-6.0.6.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:112) at mirai-console-lolicon-6.0.6.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:14) at mirai-console-lolicon-6.0.6.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:62) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) 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) Caused by: kotlinx.serialization.json.internal.JsonDecodingException: Unexpected JSON token at offset 368: Encountered an unknown key 'aiType' at path: $.data[0].urls Use 'ignoreUnknownKeys = true' in 'Json {}' builder to ignore unknown keys. JSON input: .....9/00/00/03/98671438_p0.jpg"},"aiType":0}]} at kotlinx.serialization.json.internal.JsonExceptionsKt.JsonDecodingException(JsonExceptions.kt:24) at kotlinx.serialization.json.internal.JsonExceptionsKt.JsonDecodingException(JsonExceptions.kt:32) at kotlinx.serialization.json.internal.AbstractJsonLexer.fail(AbstractJsonLexer.kt:528) at kotlinx.serialization.json.internal.AbstractJsonLexer.failOnUnknownKey(AbstractJsonLexer.kt:523) at kotlinx.serialization.json.internal.StreamingJsonDecoder.handleUnknown(StreamingJsonDecoder.kt:201) at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeObjectIndex(StreamingJsonDecoder.kt:187) at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeElementIndex(StreamingJsonDecoder.kt:121) at mirai-console-lolicon-6.0.6.mirai2.jar//io.github.samarium150.mirai.plugin.lolicon.data.ImageData$$serializer.deserialize(ImageData.kt:23) at mirai-console-lolicon-6.0.6.mirai2.jar//io.github.samarium150.mirai.plugin.lolicon.data.ImageData$$serializer.deserialize(ImageData.kt:23) at kotlinx.serialization.json.internal.PolymorphicKt.decodeSerializableValuePolymorphic(Polymorphic.kt:59) at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeSerializableValue(StreamingJsonDecoder.kt:38) at kotlinx.serialization.encoding.AbstractDecoder.decodeSerializableValue(AbstractDecoder.kt:43) at kotlinx.serialization.encoding.AbstractDecoder.decodeSerializableElement(AbstractDecoder.kt:70) at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeSerializableElement(StreamingJsonDecoder.kt:111) at kotlinx.serialization.encoding.CompositeDecoder$DefaultImpls.decodeSerializableElement$default(Decoding.kt:537) at kotlinx.serialization.internal.CollectionLikeSerializer.readElement(CollectionSerializers.kt:80) at kotlinx.serialization.internal.AbstractCollectionSerializer.readElement$default(CollectionSerializers.kt:51) at kotlinx.serialization.internal.AbstractCollectionSerializer.merge(CollectionSerializers.kt:36) at kotlinx.serialization.internal.AbstractCollectionSerializer.deserialize(CollectionSerializers.kt:43) at kotlinx.serialization.json.internal.PolymorphicKt.decodeSerializableValuePolymorphic(Polymorphic.kt:59) at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeSerializableValue(StreamingJsonDecoder.kt:38) at kotlinx.serialization.encoding.AbstractDecoder.decodeSerializableValue(AbstractDecoder.kt:43) at kotlinx.serialization.encoding.AbstractDecoder.decodeSerializableElement(AbstractDecoder.kt:70) at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeSerializableElement(StreamingJsonDecoder.kt:111) at mirai-console-lolicon-6.0.6.mirai2.jar//io.github.samarium150.mirai.plugin.lolicon.data.ResponseBody$$serializer.deserialize(ResponseBody.kt:23) at mirai-console-lolicon-6.0.6.mirai2.jar//io.github.samarium150.mirai.plugin.lolicon.data.ResponseBody$$serializer.deserialize(ResponseBody.kt:23) at kotlinx.serialization.json.internal.PolymorphicKt.decodeSerializableValuePolymorphic(Polymorphic.kt:59) at kotlinx.serialization.json.internal.StreamingJsonDecoder.decodeSerializableValue(StreamingJsonDecoder.kt:38) at kotlinx.serialization.json.Json.decodeFromString(Json.kt:100) at mirai-console-lolicon-6.0.6.mirai2.jar[private]//io.ktor.serialization.kotlinx.KotlinxSerializationConverter.deserialize(KotlinxSerializationConverter.kt:71) ... 64 more
我也,似乎是响应多了一个 “aiType”: 0 ?
-
@Islansdist 确实,我回头更新一下
-
@akame1334 @whloooh @Islansdist 已在
6.0.7
更新 -
请问黑名单怎么调,想把某个群拉黑
-
@akame1334
6.0.0
之后的版本移除了这个功能,现在的权限由mirai-console
管理。也就是说你不给某个群使用权,群里的成员就不能使用相应的命令 -
群里图片发不出来,私聊就可以 且没报错,我百思不得其解
-
大佬请问一下,我这边的确可以在命令行获取,但是怎么发到群里呢
-
This post is deleted! -
This post is deleted! -
请问,使用nohub后台运行后,出现以下报错,有什么解决方法嘛
, -
@swjxiaoyu tx的风控
-
@MLmoon 网络问题
-
请问怎么设置信任用户?用命令不识别,加配置文件不知道怎么配
-
@sachen
/perm permit u<qq> io.github.samarium150.mirai.plugin.mirai-console-lolicon:trusted
-
![KIL{_4V171LRBE9NYI]OK~X.png](/assets/uploads/files/1669868476926-kil-_4v171lrbe9nyi-ok-x.png)
权限我也添加了,但是为什么群聊和私聊根本不获取图片
只有控制台可以正常获取图片