收藏
回答

小程序报wx.request出现errno: 600001, errcode:-109?

springboot+mysql本地服务器,电脑和测试平板在同一个WiFi,postman测试接口正常,开发者工具调试没有问题,真机显示find openid err {errno: 600001, errMsg: "request:fail -109:net::ERR_ADDRESS_UNREACHABLE"}

wx.request({
                url'http://10.20.66.190:8000/position/findTheIfExitOpenID/'+res.data.openid,
                success:function(res){
                  console.log('userid',res.data)
                  if(res.data){
                    wx.request({
                      url'http://10.20.66.190:8000/position/findTheUserID/'+that.globalData.openid,
                      success:function(res){
                        console.log('finduserid',res.data)
                        that.globalData.userid=res.data
                      },
                      fail:function(err){
                        console.log('find userid err',err)
                      }
                    })
                  }else{
                    wx.request({
                      url'http://10.20.66.190:8000/position/findTheNumOfTheUser/',
                      success:function(res){
                        that.globalData.userid=res.data+1;
                        console.log(that.globalData.userid);
                      },
                      fail:function(err){
                        console.log('count userid err',err)
                      }
                    })
                  }
                },
                fail:function(err){
                  console.log('find openid err',err)
                }
              })
             
回答关注问题邀请回答
收藏

1 个回答

  • 社区技术运营专员-Jahozheng
    社区技术运营专员-Jahozheng
    2023-04-27

    这个报错一般就是网络原因导致无法解析出请求地址

    2023-04-27
    有用
    回复 1
    • undefined
      undefined
      2023-09-10
      经常报这个错,咋可能无法解析嘛,就苹果机经常报这个错,换了网络重新进小程序才行,是不是换了网络包,其他都不出现
      2023-09-10
      回复
登录 后发表内容