MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接

    java使用Http Adapter实现群文件上传时,文件发送成功,但是http请求返回500

    BUG反馈
    2
    8
    66
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      looper last edited by

      java使用Http Adapter实现群文件上传时,文件发送成功,但是http请求返回

      {"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!"}
      

      在jvm中增加了这个参数-Dmirai.message.allow.sending.file.message=true还是不行
      1111.jpg

      1 Reply Last reply Reply Quote 0
      • J
        Jadlokin-Scarlet last edited by

        你jvm参数加了后的mirai的启动指令是怎样的

        L 1 Reply Last reply Reply Quote 0
        • L
          looper @Jadlokin-Scarlet last edited by

          @Jadlokin-Scarlet 我是用mcl启动的,调用http请求报的这个错误,在idea中的jvm里加了这个参数后还是一样的错误,文件也都是正常发送成功的

          1 Reply Last reply Reply Quote 0
          • J
            Jadlokin-Scarlet last edited by

            这个jvm参数是加到mcl启动指令里的,不是加到调用端的

            L 1 Reply Last reply Reply Quote 1
            • L
              looper @Jadlokin-Scarlet last edited by

              @Jadlokin-Scarlet 在那个文件里加入,可以发一下吗?

              1 Reply Last reply Reply Quote 0
              • J
                Jadlokin-Scarlet last edited by

                你mcl是怎么启动的,在那里加上就行了

                L 2 Replies Last reply Reply Quote 0
                • L
                  looper @Jadlokin-Scarlet last edited by

                  This post is deleted!
                  1 Reply Last reply Reply Quote 0
                  • L
                    looper @Jadlokin-Scarlet last edited by

                    @Jadlokin-Scarlet 可以了 感谢感谢!卡这儿好久了

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post
                    Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact