我正在使用云功能解压缩文件,然后将其重新上传到GCS -I不断收到以下错误。有没有人遇到过这个?
ApiError: Not Found
at Object.parseHttpRespMessage (/user_code/node_modules/@google-cloud/storage/node_modules/@google-cloud/common/src/util.js:156:33)
这是用于上传的代码 -
else {
console.log(`Decompressed ${tempLocalFile}`);
fs.recurse(tempLocalDir, "**/*", function(filepath, relative, filename) {
if (!filename) return; // ignore dirs
console.log(filepath + ":" + relative + ":" + filename);
return bucket.upload(filepath, {
destination: "html/" + relative,
metadata: {}
})
});