我使用如下代码
uniCloud.deleteFile({
fileList
}).then(() => {
console.log('删除临时图片成功');
}).catch((e) => {
console.log('删除临时图片失败', e);
});
大概率删除不成功,会报错
14:21:20.876 [本地调试]Error: internal error
14:21:20.877 [本地调试] at NodeCoreHTTPResponseDecoder.decode (D:\Program Files\HBuilderX\plugins\unicloud\node_modules\@alicloud\mpserverless-node-sdk\dist\codec.js:72:27)
14:21:20.882 [本地调试] at FunctionHTTPTransport.request (D:\Program Files\HBuilderX\plugins\unicloud\node_modules\@alicloud\mpserverless-node-sdk\dist\transport.js:64:34)
14:21:20.890 [本地调试] at processTicksAndRejections (internal/process/task_queues.js:97:5)
14:21:20.891 [本地调试] at async FunctionFileService.deleteFile (D:\Program Files\HBuilderX\plugins\unicloud\node_modules\@alicloud\mpserverless-node-file-service\dist\umd\index.js:46:26)
14:21:20.895 [本地调试] at async Promise.all (index 7) uniCloud-aliyun/cloudfunctions/genWordByTemp/index.js:184:10
同志们有遇到类似问题吗,阿里云,腾讯云没这个问题。
1 个回复
DCloud_uniCloud_WYQ
如果连接云端云函数删除这个文件有这种错误吗?