收藏
回答

wxrequest返回失败,errno": 600001,errcode:10007,看下面详情?

微信小程序实现SSE功能,调用wx.request后,部分手机返回request fail {"errno": 600001, "errMsg": "request:fail errcode:10007 cronet_error_code:0 error_msg:"}


这是代码片段

this.requestTask = wx.request({

url: this.options.url,

method: 'GET',

header: headers,

responseType: 'arraybuffer',

timeout: 0, // 长连接不设置超时

enableChunked: true, // 开启分块传输

success: (res) => {

this.log('SSE request success', res);

this.handleClose();

},

fail: (err) => {

this.log('SSE request fail', err);

this.emit('error', err);

this.handleClose(true);

}

});

求解决

回答关注问题邀请回答
收藏

2 个回答

  • 社区技术运营专员-Jahozheng
    社区技术运营专员-Jahozheng
    09-26

    你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)

    09-26
    有用
    回复
  • 智能回答 智能回答 本次回答由AI生成
    09-12
    有用
    回复
登录 后发表内容