helltaker_- 2021-06-30 11:06 采纳率: 25%
浏览 762

mirai机器人出现的问题

安装mirai-api-http之后启动mcl出现报错信息,可以login

D:\1我的文件夹\mcl-1.0.5>mcl
 11:02:29 [INFO] iTXTech Mirai Console Loader version 1.0.5-9b6cf6d
 11:02:29 [INFO] https://github.com/iTXTech/mirai-console-loader
 11:02:29 [INFO] This program is licensed under GNU AGPL v3
 11:02:29 [DEBUG] Loading script: announcement.js
 11:02:29 [DEBUG] Loading script: boot.js
 11:02:29 [DEBUG] Loading script: config.js
 11:02:29 [DEBUG] Loading script: oraclejdk.js
 11:02:29 [INFO] OracleJDK is detected. MCL will download BouncyCastle automatically.
 11:02:29 [DEBUG] Loading script: repo.js
 11:02:29 [DEBUG] Loading script: updater.js
 11:02:29 [INFO] Fetching Mirai Console Loader Announcement...
 11:02:29 [INFO] Mirai Console Loader Announcement:
Mirai Console Loader 公告栏

[mirai-console] 最近, 项目组发现了权限系统可能会被错误的提前加载导致的3rd权限系统无法正确加载

于是决定, 于 2.6 起, 超前访问权限系统将得到一个错误并中断插件加载, 请各开发者及时检查

影响范围: https://github.com/mamoe/mirai-console/pull/307


 11:02:29 [INFO] Verifying "org.bouncycastle:bcprov-jdk15on" version 1.64
 11:02:30 [INFO] Verifying "net.mamoe:mirai-console" version 2.7-M1
 11:02:30 [INFO] Verifying "net.mamoe:mirai-console-terminal" version 2.7-M1
 11:02:30 [INFO] Verifying "net.mamoe:mirai-core-all" version 2.7-M1
 11:02:30 [INFO] Verifying "net.mamoe:mirai-api-http" version 1.10.0
 11:02:30 [WARNING] Package "net.mamoe:mirai-api-http" requires "net.mamoe:mirai-console" version 2.5.0. Current version is 2.7-M1
2021-06-30 11:02:32 I/main: Starting mirai-console...
2021-06-30 11:02:32 I/main: Backend: version 2.7-M1, built on 2021-06-20 02:21:33.
2021-06-30 11:02:32 I/main: Frontend Terminal: version 2.7-M1, provided by Mamoe Technologies
2021-06-30 11:02:32 I/main: Welcome to visit https://mirai.mamoe.net/
2021-06-30 11:02:32 I/plugin: Successfully loaded plugin net.mamoe.mirai-api-http
2021-06-30 11:02:32 I/main: Prepared built-in commands: autoLogin, help, login, permission, status, stop
2021-06-30 11:02:32 I/net.mamoe.mirai-api-http: Starting Mirai HTTP Server in 0.0.0.0:8080
2021-06-30 11:02:32 I/Mirai HTTP API: Http api server is running with authKey: yszzsyszzs
2021-06-30 11:02:32 I/net.mamoe.mirai-api-http: 心跳模块启用状态: false
2021-06-30 11:02:32 I/net.mamoe.mirai-api-http: 上报模块启用状态: false
2021-06-30 11:02:32 I/main: 1 plugin(s) enabled.
2021-06-30 11:02:32 I/main: mirai-console started successfully.
2021-06-30 11:02:32 E/Mirai HTTP API: java.lang.NoSuchMethodError: 'double kotlin.time.DurationKt.toDuration(int, java.util.concurrent.TimeUnit)'
java.lang.NoSuchMethodError: 'double kotlin.time.DurationKt.toDuration(int, java.util.concurrent.TimeUnit)'
        at net.mamoe.mirai.api.http.route.BaseRouteKt$mirai$2.invoke(BaseRoute.kt:48)
        at net.mamoe.mirai.api.http.route.BaseRouteKt$mirai$2.invoke(BaseRoute.kt)
        at io.ktor.features.CORS$Feature.install(CORS.kt:517)
        at io.ktor.features.CORS$Feature.install(CORS.kt:509)
        at io.ktor.application.ApplicationFeatureKt.install(ApplicationFeature.kt:68)
        at net.mamoe.mirai.api.http.route.BaseRouteKt.mirai(BaseRoute.kt:45)
        at net.mamoe.mirai.api.http.MiraiHttpAPIServer$start$2$1$1.invoke(MiraiHttpAPIServer.kt:93)
        at net.mamoe.mirai.api.http.MiraiHttpAPIServer$start$2$1$1.invoke(MiraiHttpAPIServer.kt:29)
        at io.ktor.server.engine.ApplicationEngineEnvironmentReloading.instantiateAndConfigureApplication(ApplicationEngineEnvironmentReloading.kt:303)
        at io.ktor.server.engine.ApplicationEngineEnvironmentReloading.createApplication(ApplicationEngineEnvironmentReloading.kt:138)
        at io.ktor.server.engine.ApplicationEngineEnvironmentReloading.start(ApplicationEngineEnvironmentReloading.kt:270)
        at io.ktor.server.cio.CIOApplicationEngine$serverJob$1$1.invokeSuspend(CIOApplicationEngine.kt:53)
        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)

>
  • 写回答

2条回答 默认 最新

  • qq_43403767 2021-07-28 20:16
    关注

    想问一下,最后解决了么

    评论

报告相同问题?

悬赏问题

  • ¥15 麒麟V10桌面版SP1如何配置bonding
  • ¥15 Marscode IDE 如何预览新建的 HTML 文件
  • ¥15 K8S部署二进制集群过程中calico一直报错
  • ¥15 java python或者任何一种编程语言复刻一个网页
  • ¥20 如何通过代码传输视频到亚马逊平台
  • ¥15 php查询mysql数据库并显示至下拉列表中
  • ¥15 freertos下使用外部中断失效
  • ¥15 输入的char字符转为int类型,不是对应的ascall码,如何才能使之转换为对应ascall码?或者使输入的char字符可以正常与其他字符比较?
  • ¥15 devserver配置完 启动服务 无法访问static上的资源
  • ¥15 解决websocket跟c#客户端通信