通过节点在s3中删除对象时,出现以下错误:
{
"message": "Unquoted attribute value\nLine: 313\nColumn: 79\nChar: h",
"code": "XMLParserError",
"time": "2019-05-22T09:55:35.060Z",
"originalError": {
"message": "Unquoted attribute value\nLine: 313\nColumn: 79\nChar: h",
"code": "XMLParserError",
"time": "2019-05-22T09:55:35.045Z"
},
"statusCode": 400,
"retryable": false,
"retryDelay": 30
}
我正在使用以下代码删除对象:
var AWSS3 = new AWS.S3();
let file = 'path/to/file/myfile.json'
var params = {
Bucket: bucketName,
Key: file
};
console.log(`Deleting data with key ${params.Key} from bucket ${params.Bucket}`)
AWSS3.deleteObject(params, function(err, data) {
if (err) {
console.error("Unable to delete S3 item. Error JSON:", JSON.stringify(err, null, 2));
} else {
console.log("S3 DeleteItem succeeded:", JSON.stringify(data, null, 2));
我想念什么?