StreamerHelper icon indicating copy to clipboard operation
StreamerHelper copied to clipboard

解决上传时报错Cannot read property failUpload of undefinded导致上传失败的问题

Open CuteLuoBo opened this issue 3 years ago • 1 comments

应该是函数循环的时候没有检查undefinded的问题,简易提交了PR,不过看起来短期内可能出不了新版本,给个简易解决方法: 打开/dist/uploader/index.js,找到371行,给for循环外面套个if判断就好了,完成后大概这样,后面的else不写也没事

if(target){ for (const key of Object.keys(source)) { if (source[key] instanceof Object){ Object.assign(source[key], merge(target[key], source[key])); } }

image 解决报错截图: image

关联问题: #104 #100

CuteLuoBo avatar Aug 19 '21 08:08 CuteLuoBo

emmm,本质是海外主机上传的时候容易因为各种问题中断,经常3GB的分P,要上传5~6次,这个修复只是把错误信息正确的显示出来了,通常是504错误或者续传后返回filesize error,可能还得项目作者修改分P上传和验证续传块的逻辑才能解决

CuteLuoBo avatar Aug 26 '21 04:08 CuteLuoBo