Mini Program calls the interface to report net::ERR_CONNECTION_TIMED_OUT?


there is no problem with the request code on other people"s computers, but this error is reported on my computer? I don"t know why

    
    var databody = "";
    var token = null;
    wx.request({
      url: "",
      data: databody,
      method: "POST",
      header: { "Content-Type": "application/json"},
      success: function (res) {
        // success
        var resData = res.data;
        console.log(resData);
      },
      fail: function () {
        // fail
      },
      complete: function () {
        // complete 
      }
    });

request timeout to see if it is equipped with an agent. Request domain name


POST request timeout under command line

to see whether data is returned in the background and whether the network environment is ping accessible. You can debug the background to see what the problem is

.
Menu