MiraiForum

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

    无法连接到 mirai。请检查 mirai-api-http 是否启动,地址与端口是否正确。

    HTTP API和第三方SDK
    mirai-apt-http yirimirai
    4
    25
    2528
    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.
    • S
      stack-bit last edited by

      起因是运行mcl.cmd的时候显示版本过低,然后我去官网下载了最新版,安装完后发现缺少net.mamoe.mirai-api-http,从老版本直接复制过来改了参数,然后修改后各文件post与verifyKey均一致,用的是yirimirai库连接mirai,然后mcl.cmd正常执行,但是写的机器人的py文件运行时报错无法连接到mirai。各位大佬能帮忙解决一下嘛,我若没表达清楚大佬们可以继续提出来(大哭)

      linux-rm 1 Reply Last reply Reply Quote 0
      • S
        stack-bit last edited by cssxsh

        1.png

        2.png

        3.png

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

          http配置文件备份一下删了重新生成然后修改看看

          1 Reply Last reply Reply Quote 0
          • S
            stack-bit last edited by

            请问一下是net.mamoe.mirai-api-http吗(

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

              就那个目录下的yml

              S 1 Reply Last reply Reply Quote 0
              • S
                stack-bit last edited by

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • S
                  stack-bit @Jadlokin-Scarlet last edited by

                  @Jadlokin-Scarlet 运行了mcl.cmd但是它还是没有自动生成(

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

                    看看你的启动日志

                    S 1 Reply Last reply Reply Quote 0
                    • S
                      stack-bit @Jadlokin-Scarlet last edited by cssxsh

                      @Jadlokin-Scarlet
                      4.png

                      1 Reply Last reply Reply Quote 0
                      • S
                        stack-bit last edited by cssxsh

                        0.png

                        1 Reply Last reply Reply Quote 0
                        • Moved from 开发交流 by  RainChan RainChan 
                        • linux-rm
                          linux-rm @stack-bit last edited by

                          @stack-bit 看问题,"地址与端口是否正确"

                          S 1 Reply Last reply Reply Quote 0
                          • S
                            stack-bit @linux-rm last edited by

                            @linux-rm 但是端口和key检查了都是一样的啊(

                            linux-rm 1 Reply Last reply Reply Quote 0
                            • linux-rm
                              linux-rm @stack-bit last edited by

                              @stack-bit 检查地址是否都是0.0.0.0

                              S 1 Reply Last reply Reply Quote 0
                              • S
                                stack-bit @linux-rm last edited by

                                @linux-rm emm哪个地址啊,不太明白(

                                linux-rm 1 Reply Last reply Reply Quote 0
                                • linux-rm
                                  linux-rm @stack-bit last edited by

                                  @stack-bit 3230092c-9d80-4fb0-a3d0-91fa56ac5a5b-image.png

                                  S 1 Reply Last reply Reply Quote 0
                                  • S
                                    stack-bit @linux-rm last edited by

                                    @linux-rm 我一直用的都是localhost(

                                    1 Reply Last reply Reply Quote 0
                                    • linux-rm
                                      linux-rm last edited by

                                      访问地址也要0.0.0.0
                                      例如这样
                                      image.png

                                      linux-rm 1 Reply Last reply Reply Quote 0
                                      • linux-rm
                                        linux-rm @linux-rm last edited by

                                        @linux-rm 你可以在启动服务后直接用浏览器访问http://0.0.0.0:8080/about来验证,效果如下(因装插件所以被格式化)截图

                                        S 1 Reply Last reply Reply Quote 0
                                        • S
                                          stack-bit @linux-rm last edited by

                                          @linux-rm okok谢谢大佬,我试试

                                          linux-rm 1 Reply Last reply Reply Quote 0
                                          • linux-rm
                                            linux-rm @stack-bit last edited by

                                            @stack-bit 是否解决

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