project-mirai / mirai-api-http

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

上传群文件报错,但实际上上传成功了 #665

Closed ATFGK closed 1 year ago

ATFGK commented 1 year ago

返回这个内容: {"code":500,"msg":"Sending FileMessage is not allowed, as it may cause unexpected results. Add JVM argument -Dmirai.message.allow.sending.file.message=true to disable this check. Do this only for compatibility!"}

但群文件实际上传成功了,群里也收到了上传群文件成功的提示了

Apicer commented 1 year ago

在启动文件里加上-Dmirai.message.allow.sending.file.message=true 这段jvm参数

ATFGK commented 1 year ago

按照这种方法不再报错了,但是却提示了两次上传文件提示 C`OGQUUS }@FIJ9@CISTLYT

Apicer commented 1 year ago

这个我也不太清楚,我这块也是这样,提了issues,也没人回复,有可能是api版本问题吧

ATFGK commented 1 year ago

之前我提过一个issues说上传完文件不会提示消息,然后采纳了之后现在提示两次........

Apicer commented 1 year ago

但是上传完文件会有返参,你看下你的返参里的parent节点是否有值,如果有值的话就跟我的应该是一样的问题,我看文档上的parent节点是为null,可能就是因为这个parent节点才导致发送两次,我也就知道这么多

ATFGK commented 1 year ago

但是上传完文件会有返参,你看下你的返参里的parent节点是否有值,如果有值的话就跟我的应该是一样的问题,我看文档上的parent节点是为null,可能就是因为这个parent节点才导致发送两次,我也就知道这么多

有值,看来是一样的

ryoii commented 1 year ago

那就是之前的 bug 提交反馈没有发送是误报了

ATFGK commented 1 year ago

之前的bug是确实存在的

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2023年1月14日(星期六) 晚上10:35 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [project-mirai/mirai-api-http] 上传群文件报错,但实际上上传成功了 (Issue #665)

那就是之前的 bug 提交反馈没有发送是误报了

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