project-mirai / mirai-api-http

Mirai HTTP API (console) plugin
GNU Affero General Public License v3.0
1.65k stars 345 forks source link

SPF4J加载失败 #538

Closed yangnuozhen closed 2 years ago

yangnuozhen commented 2 years ago

按照用户手册进行配置,启动时提示:

2022-01-29 18:42:29 I/Mirai HTTP API: ********************************************************
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
2022-01-29 18:42:29 I/http adapter: >>> [http adapter] is listening at http://localhost:8080
2022-01-29 18:42:29 I/ws adapter: >>> [ws adapter] is listening at ws://localhost:8080
2022-01-29 18:42:29 I/Mirai HTTP API: Http api server is running with verifyKey: **********
2022-01-29 18:42:29 I/Mirai HTTP API: adaptors: [http,ws]
2022-01-29 18:42:29 I/Mirai HTTP API: ********************************************************

(日志经过处理)

ryoii commented 2 years ago

不影响使用

yangnuozhen commented 2 years ago

不影响使用

但是http和ws配置正确却无法连接 不知道是不是这个的问题

ryoii commented 2 years ago

不是 http和ws监听到了localhost,排查确认一下自己是不是本地连接

yangnuozhen commented 2 years ago

不是 http和ws监听到了localhost,排查确认一下自己是不是本地连接

是 本地连接 用的localhost 127.0.0.1也试过了 都不行

ryoii commented 2 years ago

方便的话提供以下连接的代码

yangnuozhen commented 2 years ago

方便的话提供以下连接的代码

用的是only5267大佬的基于mirai-http-api的epl sdk

ryoii commented 2 years ago

我没有易语言的开发环境,看不了易语言特有的二进制源码。但是从仓库的历史来看,应该是远古版本的sdk了。建议更换别的sdk或者想办法使用1.x版本的mah