MiraiForum

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

    使用http api与minecraft插件对接时出现状态码101

    HTTP API和第三方SDK
    3
    6
    337
    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.
    • D
      domerawind last edited by

      是minecraft服务器插件 链接如下:https://www.mcbbs.net/thread-1175227-1-1.html 按照教程搭建后不能正常使用
      在服务端后台看到如下信息 提示http状态码101 切换协议 怀疑是不能用的原因
      不知如何解决?

      BOT: 注册bot...
      [20:08:07] [Server thread/INFO]: BOT: 注册成功! result: {"code":0,"session":"Rv490PRi"}
      [20:08:07] [Server thread/INFO]: BOT: 绑定BOT...
      [20:08:07] [Server thread/INFO]: BOT: 验证成功! 服务器返回结果: {"code":0,"msg":"success"}
      [20:08:07] [Server thread/INFO]: BOT: 链接服务器中...
      BOT: 连接成功! 状态: Switching Protocols | 101
      

      访问ip:8080//about 提示

      159.75.140.12 拒绝了我们的连接请求。
      请试试以下办法:
      
      检查网络连接
      检查代理服务器和防火墙
      ERR_CONNECTION_REFUSED
      
      1 Reply Last reply Reply Quote 0
      • Karlatemp
        Karlatemp last edited by

        你这提示不是告诉你解决方法了吗

        D 1 Reply Last reply Reply Quote 0
        • D
          domerawind @Karlatemp last edited by

          @karlatemp mirai主机和游戏服务端在同一个服务器上 我下面那个代码块里放的是从外网访问mirai主机的结果(防火墙已开放端口)

          1 Reply Last reply Reply Quote 0
          • Karlatemp
            Karlatemp last edited by

            在同一主机为啥不用 127.0.0.1

            D 1 Reply Last reply Reply Quote 0
            • D
              domerawind @Karlatemp last edited by

              @karlatemp 因为服务器是云端的

              1 Reply Last reply Reply Quote 0
              • RainChan
                RainChan 摸鱼 last edited by

                提示101切换协议应该是正常的,请联系对于http客户端开发者获取更多信息

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