Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

info on non-existent object crashes s3cmd

2011-09-15
2013-02-19
  • s3cmd crashes when trying to get info of non-existent object:

    $ s3cmd info s3://BUCKET/not_an_object
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
        An unexpected error has occurred.
      Please report the following lines to:
       s3tools-bugs@lists.sourceforge.net
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    Problem: ParseError: no element found: line 1, column 0
    S3cmd:   1.0.0
    Traceback (most recent call last):
      File "/usr/bin/s3cmd", line 2006, in <module>
        main()
      File "/usr/bin/s3cmd", line 1950, in main
        cmd_func(args)
      File "/usr/bin/s3cmd", line 631, in cmd_info
        info = s3.object_info(uri)
      File "/usr/share/s3cmd/S3/S3.py", line 324, in object_info
        response = self.send_request(request)
      File "/usr/share/s3cmd/S3/S3.py", line 511, in send_request
        raise S3Error(response)
      File "/usr/share/s3cmd/S3/Exceptions.py", line 48, in __init__
        tree = getTreeFromXml(response["data"])
      File "/usr/share/s3cmd/S3/Utils.py", line 66, in getTreeFromXml
        tree = ET.fromstring(xml)
      File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1283, in XML
        return parser.close()
      File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1636, in close
        self._raiseerror(v)
      File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1488, in _raiseerror
        raise err
    ParseError: no element found: line 1, column 0
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
        An unexpected error has occurred.
        Please report the above lines to:
       s3tools-bugs@lists.sourceforge.net
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!