ChatLearning——让bot学会你的群聊
-
@saratoga-no-one 刚刚试了还是ok的
可能您上传的时间刚好处于服务器的高峰期 可以再多传几次试试 -
@Koreyoshi 在一天的各个时间段都试过了,差不多快一百次,但没有一次成功,每次都是服务器未响应,是我这边出什么问题了吗(其他功能都好好的,就是没法上传音频)
-
@saratoga-no-one 是不是您的服务器挂有代理之类的?要不就加个qq把音频发给我我后台传上去吧,1121917292
-
能麻烦大佬帮忙看看是啥问题吗?这个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: [*] }
-
@resnowh 选中的地方应该是有个缩进的,在http:前面加个空格应该就ok了
看这个缩进格式 -
@Koreyoshi 加了缩进,还是抛同样的异常。但是我后台开了一会,他隔一段时间会自动合并词库,不知道是不是已经在正常运行了?其他功能都看起来挺正常的,除了抛异常。。😂
-
@resnowh 刚刚仔细看了下 是127.0.0.1:8075
-
@Koreyoshi 现在那边没有报错,只有这边抛了异常
-
@resnowh 是data.json文件的host不对
-
@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) -
@resnowh 插件目录是不是有多个mirai-api-http的jar包?或者是同其他插件有冲突? 我这边测试的mah版本是2.3.3
-
交流QQ群:734450830 方便大家提出问题,bug以及改进建议,分享语料库等
-
@Koreyoshi 应该没有冲突吧,我这边是2.5.0
-
@resnowh 打开cmd,然后拖到cmd里运行,我看看报错信息
-
@Koreyoshi 空的,啥也没报
-
@resnowh )把Chatmain.exe拖进去运行
-
-
@resnowh 是不是少了config.clc这个文件
-
@Koreyoshi 有的呀
-
@resnowh 噢我知道了)得在目录下打开cmd 这上面输入然后回车