The patch method of ajax requests to report to request:fail method is invalid?

wx.request({
      url: dataUrl,
      method: "PATCH",
      data: { "isRead": true },
      header: app.globalData.headerCommon,
      success: function (res) {
        if (res.data.code === 200) {
          typeof callback == "function" && callback(res.data.data, setKey);
        }
        else {
          showError(res.data.msg);
        }
      },
      fail: function (error) {
        console.log(error);
      }
    })

this API directly reports

I don"t know what the reason is.

Mar.04,2021

set contentType

Menu