"errno":600005,"errMsg":"uploadFile:fail file path invalid"
因为我们在后台打了实时日志,发现请求没有成功,catch捕获了异常,异常信息如上,同样的代码,其余人都可以上传成功,请问下是什么原因,请问报错的原因是什么呢
代码和log如下
// 这是上传图片的方法
BFXJCTEMPuploadImage: function () {
let mustCheckVisitData = this.data.visitProcess.getModuleSaveData(visitConfig.visitProcessStep.BFXJC);
let _processData = this.data.visitProcess.getVisitProcessState(visitConfig.visitProcessStep.BFXJC);
let imgListPath = _processData['imgList'] || []
logger.info('imgListPath', imgListPath);
//已经走到了这里 这里显示的是日志是
// [10:02:39] imgListPath [{"key":"wxfile://tmp_65d9ea6f75871aab42a70fc4eb211ea8.jpg","materielCheckCd":"634123100000064128748720220705091657","imageName":"634123100000064128748720220705091657_00.jpg","upLoadFinish":"4"},{"key":"wxfile://tmp_4217c15f8a01eb1615df81f78d220589.jpg","materielCheckCd":"634123100000065128748720220705091657","imageName":"634123100000065128748720220705091657_00.jpg","upLoadFinish":"4"},{"key":"wxfile://tmp_bb1bf37c3cc89f51af5b930837c512a8.jpg","materielCheckCd":"634123100000065128748720220705091657","imageName":"634123100000065128748720220705091657_01.jpg","upLoadFinish":"4"}]
if (imgListPath && imgListPath.length > 0) {
for (let k = 0; k < imgListPath.length; k++) {
let txnKey = imgListPath[k].txnKey
let uploadStatus = imgListPath[k].upLoadFinish
let picRow = imgListPath[k].picRow
let picCol = imgListPath[k].picCol
if (visitConfig.visitProcessUploadStatus.uploaded != uploadStatus) {
let _keyId = imgListPath[k].key
const postImage = request.uploadNew(_keyId, config.api.uploadMslCompImage, {
fileTypeCd: "VISIT_MSLCOMP_IMAGE",
txnKey: txnKey,
mslCompCd: "",
picRow: picRow,
picCol: picCol
});
//请求中出现报错
postImage.then(result => {
logger.info('必分销图片上传成功。。', result);
this.updateVisitProcessStepImgState(visitConfig.visitProcessStep.BFXJC, _keyId, visitConfig.visitProcessUploadStatus.uploaded);
}).catch((mslI) => {
logger.error('必分销上传图片失败回调', mslI);
//这里的log是[10:02:39] 必分销上传图片失败回调 {"errno":600005,"errMsg":"uploadFile:fail file path invalid"}
this.updateVisitProcessStepImgState(visitConfig.visitProcessStep.BFXJC, _keyId, visitConfig.visitProcessUploadStatus.error);
});
}
}
}
},
请帮忙尽快修复或给出解决方案,这样现在会导致我们每天都在不定时不定人的情况出现这种error,谢谢
你好,这个错误提示就是传入的资源路径不对,查一下资源到底在不在?
[16:18:22] 进店签到上传图片失败回调 {"errno":600005,"errMsg":"uploadFile:fail file path invalid"}
[16:17:08] 进店签到上传图片失败回调 {"errno":600005,"errMsg":"uploadFile:fail file path invalid"}
[16:16:08] 进店签到上传图片失败回调 {"errno":600005,"errMsg":"uploadFile:fail file path invalid"}
后台体质可以看到 图片路径是wxfile://tmp_bd13c5f0c9d3605bd7c2e419a644b642.jpg
而且这种情况目前看来不是所有人 是偶发性的个别手机性的问题,请帮忙抓取用日志 查看具体问题 帮忙分析下
都24年了,这问题还没有解决方案吗???????
还没有解决,我这边也复现了
同样的问题
现在解决了吗