我在S3存储桶中有一个损坏的文件,无法删除它。我从控制台收到以下错误:
不确定如何清除该文件。尝试移动会引发以下错误:
$ aws s3 mv s3://<bucket>/corrup\†\&\#x1c\;o.html s3://<bucket>/test/corr.html
fatal error: An error occurred (404) when calling the HeadObject operation: Key "corrup†o.html" does not exist
更新:
aws s3api list-object-versions --bucket <bucket name> --debug
2019-03-10 11:49:00,781 - MainThread - awscli.clidriver - DEBUG - Exception caught in main()
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/botocore/parsers.py", line 432, in _parse_xml_string_to_dom
parser.feed(xml_string
File "<string>", line None
xml.etree.ElementTree.ParseError: reference to invalid character number: line 2, column 129326