好像不能识别日语... 有没有解决办法呢
resnowh 发布的帖子
-
RE: ChatLearning——让bot学会你的群聊
@Koreyoshi 改成127之后Chatmain直接闪退了,且log是空的,另一边报错:
2022-03-30 16:37:09 E/MAH Access java.lang.NoSuchMethodError: 'void io.ktor.http.ParametersBuilder.<init>(int, io.ktor.http.UrlEncodingOption, int, kotlin.jvm.internal.DefaultConstructorMarker)'
java.lang.NoSuchMethodError: 'void io.ktor.http.ParametersBuilder.<init>(int, io.ktor.http.UrlEncodingOption, int, kotlin.jvm.internal.DefaultConstructorMarker)'
at io.ktor.routing.RoutingResolveContext.findBestRoute(RoutingResolve.kt:223)
at io.ktor.routing.RoutingResolveContext.resolve(RoutingResolve.kt:135)
at io.ktor.routing.Routing.interceptor(Routing.kt:37)
at io.ktor.routing.Routing$Feature$install$1.invokeSuspend(Routing.kt:107)
at io.ktor.routing.Routing$Feature$install$1.invoke(Routing.kt)
at io.ktor.routing.Routing$Feature$install$1.invoke(Routing.kt)
at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:246)
at io.ktor.util.pipeline.SuspendFunctionGun.proceed(SuspendFunctionGun.kt:116)
at net.mamoe.mirai.api.http.adapter.http.feature.auth.Authorization$install$1.invokeSuspend(Authorization.kt:41)
at net.mamoe.mirai.api.http.adapter.http.feature.auth.Authorization$install$1.invoke(Authorization.kt)
at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:246)
at io.ktor.util.pipeline.SuspendFunctionGun.proceed(SuspendFunctionGun.kt:116)
at net.mamoe.mirai.api.http.adapter.http.feature.handler.HttpRouterAccessHandler.intercept(HttpRouterAccessHandler.kt:36)
at net.mamoe.mirai.api.http.adapter.http.feature.handler.HttpRouterAccessHandler.access$intercept(HttpRouterAccessHandler.kt:25)
at net.mamoe.mirai.api.http.adapter.http.feature.handler.HttpRouterAccessHandler$Feature$install$1.invokeSuspend(HttpRouterAccessHandler.kt:91)
at net.mamoe.mirai.api.http.adapter.http.feature.handler.HttpRouterAccessHandler$Feature$install$1.invoke(HttpRouterAccessHandler.kt)
at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:246)
at io.ktor.util.pipeline.SuspendFunctionGun.proceed(SuspendFunctionGun.kt:116)
at io.ktor.util.pipeline.SuspendFunctionGun.execute(SuspendFunctionGun.kt:136)
at io.ktor.util.pipeline.Pipeline.execute(Pipeline.kt:79)
at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$2.invokeSuspend(DefaultEnginePipeline.kt:127)
at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$2.invoke(DefaultEnginePipeline.kt)
at io.ktor.server.engine.DefaultEnginePipelineKt$defaultEnginePipeline$2.invoke(DefaultEnginePipeline.kt)
at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:246)
at io.ktor.util.pipeline.SuspendFunctionGun.proceed(SuspendFunctionGun.kt:116)
at io.ktor.util.pipeline.SuspendFunctionGun.execute(SuspendFunctionGun.kt:136)
at io.ktor.util.pipeline.Pipeline.execute(Pipeline.kt:79)
at io.ktor.server.cio.CIOApplicationEngine$handleRequest$2.invokeSuspend(CIOApplicationEngine.kt:196)
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) -
RE: ChatLearning——让bot学会你的群聊
@Koreyoshi 加了缩进,还是抛同样的异常。但是我后台开了一会,他隔一段时间会自动合并词库,不知道是不是已经在正常运行了?其他功能都看起来挺正常的,除了抛异常。。😂
-
RE: ChatLearning——让bot学会你的群聊
能麻烦大佬帮忙看看是啥问题吗?这个exception是我打开mirai正常运行之后启动报错,不知道是不是api-http的问题😢
欢迎使用ChatLearning应用 版本号: 2.6.0 输入help来查看指令列表吧! 抛出异常,已记录到日志(log.log文件) Traceback (most recent call last): File "ChatClass.py", line 103, in run File "Chatmain.py", line 924, in getcommand_chat File "simuse.py", line 76, in Fetch_Message TypeError: 'int' object is not subscriptable ChatLearning ->learning <-开始记录 2022-03-30 15:33:02 词库合并完成 抛出异常,已记录到日志(log.log文件) Traceback (most recent call last): File "ChatClass.py", line 103, in run File "ChatSubadmin.py", line 85, in main File "simuse.py", line 76, in Fetch_Message TypeError: 'int' object is not subscriptable
下面是data.json 和api-http的settings.yml
{ //data.json: "Key": "020223", "host": "172.0.0.1:8075", "port": "8075", "qq": "132****225", "session": "XXX" }
{ adapters: - http debug: false enableVerify: true verifyKey: 020223 singleMode: false cacheSize: 4096 adapterSettings: http: host: localhost port: 8075 cors: [*] }