project-mirai / mirai-api-http

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

配置了webhook启动没生效 #591

Closed y1834257499 closed 2 years ago

y1834257499 commented 2 years ago

image image 配置了webhook启动没生效

Initial-heart-1 commented 2 years ago

在关闭 mirai-console 的状态下进行配置,配置好后再打开 (猜的,这么干的当我没说)

y1834257499 commented 2 years ago

在控制台的状态下进行配置,配置关闭好后面 的(猜想的,这样当我没看到)

这样操作过了,不行

0f-0b commented 2 years ago

在 mirai-console 2.12.0 下遇到了可能相同的问题。2.11.1 下能正常运行。

2.12.0 ```log 2022-07-09 17:34:46 I/main: Starting mirai-console... 2022-07-09 17:34:46 I/main: Backend: version 2.12.0, built on 2022-07-03 10:57:58. 2022-07-09 17:34:46 I/main: Frontend Terminal: version 2.12.0, provided by Mamoe Technologies 2022-07-09 17:34:46 I/main: Welcome to visit https://mirai.mamoe.net/ 2022-07-09 17:34:46 W/stderr: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". 2022-07-09 17:34:46 W/stderr: SLF4J: Defaulting to no-operation (NOP) logger implementation 2022-07-09 17:34:46 W/stderr: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. 2022-07-09 17:35:13 I/plugin: Successfully loaded plugin net.mamoe.mirai-api-http v2.5.2 2022-07-09 17:35:13 I/main: Prepared built-in commands: autoLogin, help, login, logout, permission, status, stop 2022-07-09 17:35:13 I/Mirai HTTP API: ******************************************************** 2022-07-09 17:35:13 W/stderr: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". 2022-07-09 17:35:13 W/stderr: SLF4J: Defaulting to no-operation (NOP) logger implementation 2022-07-09 17:35:13 W/stderr: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. 2022-07-09 17:35:14 I/http adapter: >>> [http adapter] is listening at http://localhost:40031 2022-07-09 17:35:14 I/Mirai HTTP API: Http api server is running with verifyKey: 2022-07-09 17:35:14 I/Mirai HTTP API: adaptors: [http] 2022-07-09 17:35:14 I/Mirai HTTP API: ******************************************************** 2022-07-09 17:35:14 I/main: 1 plugin(s) enabled. ```
2.11.1 ```log 2022-07-09 17:35:39 I/main: Starting mirai-console... 2022-07-09 17:35:39 I/main: Backend: version 2.11.1, built on 2022-05-26 04:43:10. 2022-07-09 17:35:39 I/main: Frontend Terminal: version 2.11.1, provided by Mamoe Technologies 2022-07-09 17:35:39 I/main: Welcome to visit https://mirai.mamoe.net/ 2022-07-09 17:35:40 W/stderr: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". 2022-07-09 17:35:40 W/stderr: SLF4J: Defaulting to no-operation (NOP) logger implementation 2022-07-09 17:35:40 W/stderr: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. 2022-07-09 17:35:40 I/plugin: Successfully loaded plugin net.mamoe.mirai-api-http v2.5.2 2022-07-09 17:35:41 I/main: Prepared built-in commands: autoLogin, help, login, logout, permission, status, stop 2022-07-09 17:35:41 I/Mirai HTTP API: ******************************************************** 2022-07-09 17:35:41 I/http adapter: >>> [http adapter] is listening at http://localhost:40031 2022-07-09 17:35:41 I/webhook adapter: >>> [webhook adapter] is running 2022-07-09 17:35:41 I/webhook adapter: >>> [webhook adapter] is attaching destinations [http://localhost:40032/] 2022-07-09 17:35:41 I/Mirai HTTP API: Http api server is running with verifyKey: 2022-07-09 17:35:41 I/Mirai HTTP API: adaptors: [http,webhook] 2022-07-09 17:35:41 I/Mirai HTTP API: ******************************************************** 2022-07-09 17:35:41 I/main: 1 plugin(s) enabled. ```
setting.yml ```yml adapters: - http - webhook enableVerify: true verifyKey: singleMode: true adapterSettings: http: host: localhost port: 40031 cors: [] webhook: destinations: - "http://localhost:40032/" ```
MFWT commented 2 years ago

同样遇到了这个问题 按照楼上的方法,仅仅将console降级到2.11.1,webhook就有反应了

Initial-heart-1 commented 2 years ago

个人建议:这可能是 mirai 的问题?(仅仅是可能且没有明确的证据) 可以去 mirai 那里开一个 issue

------------------ Original ------------------ From: @.>; Date: 2022年7月9日(星期六) 晚上11:42 To: @.>; Cc: "Initial @.>; @.>; Subject: Re: [project-mirai/mirai-api-http] 配置了webhook启动没生效 (Issue #591)

同样遇到了这个问题 按照楼上的方法,仅仅将console降级到2.11.1,webhook就有反应了

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

ryoii commented 2 years ago

暂时回退版本吧,我也不知道最新版本的 mirai-core 更新了什么内容,目前还没有时间排查

ryoii commented 2 years ago

2.6.1 已修复