Giter Club home page Giter Club logo

Comments (6)

bjaglin avatar bjaglin commented on August 17, 2024

As seen from aws-cli:

2016-01-14 10:00:19,170 - MainThread - botocore.endpoint - DEBUG - Sending http request: <PreparedRequest [HEAD]>
2016-01-14 10:00:19,171 - MainThread - botocore.vendored.requests.packages.urllib3.connectionpool - INFO - Starting new HTTP connection (1): s3
2016-01-14 10:00:19,184 - MainThread - botocore.vendored.requests.packages.urllib3.connectionpool - DEBUG - "HEAD /s3/mytestbucket/newfile HTTP/1.1" 200 0
2016-01-14 10:00:19,185 - MainThread - botocore.parsers - DEBUG - Response headers: {'content-length': '0', 'server': '6a02b91e2db8 (scireum SIRIUS - powered by Netty)', 'connection': 'keep-alive', 'etag': '249C850F62EA50FEB918B095FC56D763', 'p3p': 'CP="This site does not have a p3p policy."', 'content-md5': 'JJyFD2LqUP65GLCV/FbXYw==', 'content-type': 'text/plain'}
2016-01-14 10:00:19,185 - MainThread - botocore.parsers - DEBUG - Response body:

2016-01-14 10:00:19,186 - MainThread - botocore.hooks - DEBUG - Event needs-retry.s3.HeadObject: calling handler <botocore.retryhandler.RetryHandler object at 0x7f47e835d090>
2016-01-14 10:00:19,186 - MainThread - botocore.retryhandler - DEBUG - No retry needed.
2016-01-14 10:00:19,187 - MainThread - botocore.hooks - DEBUG - Event after-call.s3.HeadObject: calling handler <function enhance_error_msg at 0x7f47e89d4b90>
2016-01-14 10:00:19,187 - MainThread - botocore.hooks - DEBUG - Event after-call.s3.HeadObject: calling handler <awscli.errorhandler.ErrorHandler object at 0x7f47e89a1290>
2016-01-14 10:00:19,187 - MainThread - awscli.errorhandler - DEBUG - HTTP Response Code: 200
2016-01-14 10:00:19,187 - MainThread - awscli.customizations.s3.s3handler - DEBUG - Exception caught during task execution: 'LastModified'
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/awscli/customizations/s3/s3handler.py", line 101, in call
    total_files, total_parts = self._enqueue_tasks(files)
  File "/usr/lib/python2.7/site-packages/awscli/customizations/s3/s3handler.py", line 179, in _enqueue_tasks
    for filename in files:
  File "/usr/lib/python2.7/site-packages/awscli/customizations/s3/fileinfobuilder.py", line 31, in call
    for file_base in files:
  File "/usr/lib/python2.7/site-packages/awscli/customizations/s3/filegenerator.py", line 142, in call
    for src_path, extra_information in file_iterator:
  File "/usr/lib/python2.7/site-packages/awscli/customizations/s3/filegenerator.py", line 314, in list_objects
    yield self._list_single_object(s3_path)
  File "/usr/lib/python2.7/site-packages/awscli/customizations/s3/filegenerator.py", line 362, in _list_single_object
    last_update = parse(response['LastModified'])
KeyError: 'LastModified'

from s3ninja.

icambron avatar icambron commented on August 17, 2024

Yeah, the Response class needs a way to pull out the headers it would set from the file without actually sending the file. It looks non-terrible to implement; see here

from s3ninja.

andyHa avatar andyHa commented on August 17, 2024

A pull request would be very welcome ;-)

from s3ninja.

sabieber avatar sabieber commented on August 17, 2024

Sorry for not getting back earlier. Could you please upgrade the version as mentioned in my PR comment?

from s3ninja.

bjaglin avatar bjaglin commented on August 17, 2024

@sabieber I am the author of the issue, but not the author of the PR, so unless I open a new PR and cherry-pick the commit, I can't

from s3ninja.

chadbirch avatar chadbirch commented on August 17, 2024

Is there anything else that needs be done in order to merge the PR?

from s3ninja.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.