carson2440
carson2440
  • 发布:2020-12-11 15:26
  • 更新:2020-12-11 19:42
  • 阅读:1036

【报Bug】ios12 和 14系统下 ssl库存在bug

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Mac

PC开发环境操作系统版本号: 10.15.6

HBuilderX类型: 正式

HBuilderX版本号: 2.9.8

手机系统: iOS

手机系统版本号: IOS 14

手机厂商: 苹果

手机机型: iphone 6s

页面类型: vue

打包方式: 离线

项目创建方式: HBuilderX

示例代码:

doUploadImage() {
if (this.tagImages.length == 0) {
this.$refs.uToast.show({
title: '请选择图片',
type: 'error'
});
return;
}
let imgs = this.tagImages.map((value, index) => {
return {
name: 'file' + index,
uri: value
};
});
this.$http
.uniUploadFiles({
url: '/api/v1/file/upload-files',
files: imgs,
formData: null
})
.then(res => {
let response = JSON.parse(res.data);
if (response.success && response.object.filePaths) {
let imagesStr = response.object.filePaths;
this.model.photos = imagesStr.join(',');
if (this.model.photos) {
this.questionAddFn();
}
} else {
let message = res.data.message ? res.data.message : '上传图片失败';
this.$refs.uToast.show({
title: message,
type: 'error'
});
}
});
},

操作步骤:

重复上传文件

预期结果:

执行成功

实际结果:

底层ssl库存在bug,支持代码后抛出异常,上层应用无反应;换成http的域名就解决问题了

bug描述:

HTTPS方式上传文件前面3次都正常,后面继续重复操作,上传文件报错
[BoringSSL] nw_protocol_boringssl_error(1584) C49.1:2 Lower protocol stack error: 53

2020-12-11 15:26 负责人:无 分享
已邀请:
carson2440

carson2440 (作者) - 移动全占开发工程师

在苹果6 12.4.8系统中上传文件2张图片时报错:nw_protocol_boringssl_get_output_frames(1301) [C1.1:2][0x1035054d0] get output frames failed, state 8196
2020-12-11 15:53:45.399748+0800 大加巡检[2575:120393] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C1.1:2][0x1035054d0] get output frames failed, state 8196
2020-12-11 15:53:45.402471+0800 大加巡检[2575:120393] TIC Read Status [1:0x0]: 1:57
2020-12-11 15:53:45.402568+0800 大加巡检[2575:120393] TIC Read Status [1:0x0]: 1:57
2020-12-11 15:53:48.557665+0800 大加巡检[2575:120544] Metal GPU Frame Capture Enabled
2020-12-11 15:53:48.563187+0800 大加巡检[2575:120544] Metal API Validation Enabled
2020-12-11 15:53:53.198800+0800 大加巡检[2575:119864] <Weex>[log]WXBridgeContext.m:1310, jsLog: 是否是草稿: true at pages/user/question/question_Add.vue:1206 LOG
2020-12-11 15:53:53.236228+0800 大加巡检[2575:119722] [Runtime][INFO:] Upload js createUpload-[http://cloud.inspection.haogonge.com/api/v1/file/upload-files]!!
2020-12-11 15:53:53.250113+0800 大加巡检[2575:119722] [Runtime][INFO:] Upload js task start[http://cloud.inspection.haogonge.com/api/v1/file/upload-files] !!
2020-12-11 15:53:53.673671+0800 大加巡检[2575:120543] [Runtime][DEBUG:] WriteStreamError domain: 0 error: 0
2020-12-11 15:53:53.684894+0800 大加巡检[2575:119864] <Weex>[error]WXBridgeContext.m:1310, jsLog: SyntaxError: JSON Parse error: Unexpected EOF
ERROR
2020-12-11 15:53:53.763458+0800 大加巡检[2575:119722] Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service
2020-12-11 15:53:56.021113+0800 大加巡检[2575:120310] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C2.1:2][0x10340cee0] get output frames failed, state 8196
2020-12-11 15:53:56.026524+0800 大加巡检[2575:120310] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C2.1:2][0x10340cee0] get output frames failed, state 8196
2020-12-11 15:53:56.027759+0800 大加巡检[2575:120310] TIC Read Status [2:0x0]: 1:57
2020-12-11 15:53:56.032449+0800 大加巡检[2575:120310] TIC Read Status [2:0x0]: 1:57

天生DR

天生DR - 天生我材必有用

请提供可以稳定复现的工程 上传到附件中 我们这边跟进一下

该问题目前已经被锁定, 无法添加新回复