Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: 使用http进行发送消息的请求一律返回消息为空 #2512

Open
4 tasks done
Lixcy-hy opened this issue Jan 20, 2024 · 1 comment
Open
4 tasks done
Labels
bug? The issue author think this is a bug

Comments

@Lixcy-hy
Copy link

Lixcy-hy commented Jan 20, 2024

请确保您已阅读以上注意事项,并勾选下方的确认框。

  • 我已经仔细阅读上述教程和 "提问前需知"
  • 我已经使用 dev分支版本 测试过,问题依旧存在。
  • 我已经在 Issue Tracker 中找过我要提出的问题,没有找到相同问题的ISSUE。
  • 我已知晓并同意,此处仅用于汇报程序中存在的问题。若这个 Issue 是关于其他非程序本身问题,则我的 Issue 可能会被无条件自动关闭或/并锁定。(这些问题应当在 Discussion 板块提出。)

go-cqhttp 版本

1.1.0

运行环境

Ubuntu

运行架构

x86

连接方式

HTTP

使用协议

1 | Android Phone

重现步骤

服务器配置:
servers:

  • http: # HTTP 通信设置
    address: 0.0.0.0:5700 # HTTP监听地址
    timeout: 5 # 反向 HTTP 超时时间, 单位秒,<5 时将被忽略
    long-polling: # 长轮询拓展
    enabled: false # 是否开启
    max-queue-size: 2000 # 消息队列大小,0 表示不限制队列大小,谨慎使用
    middlewares:
    <<: *default # 引用默认中间件
    post: # 反向HTTP POST地址列表

发送请求:
curl --location --request POST 'domain:5700/send_private_msg'
--header 'Content-Type: application/json'
--data-raw '{
"group_id": 88888888,
"message": "dddddd"
}'

期望的结果是什么?

正常发送消息

实际的结果是什么?

返回:
{
"data": null,
"message": "消息为空",
"msg": "EMPTY_MSG_ERROR",
"retcode": 100,
"status": "failed",
"wording": "消息为空"
}

简单的复现代码/链接(可选)

No response

日志记录(可选)

No response

补充说明(可选)

No response

@Lixcy-hy Lixcy-hy added the bug? The issue author think this is a bug label Jan 20, 2024
@xiaosuyyds
Copy link

我在windows amd64的dev版本中测试,此问题貌似已被修复
XI@`2Q@{ ~ANK)TL2NTR5QV

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug? The issue author think this is a bug
Projects
None yet
Development

No branches or pull requests

2 participants