title: amazon s3 The specified key does not exist after get_key success
body: <p>I am using python and boto</p>
  
  <p>this is my code:</p>
  
  <pre><code>key = bucket.get_key(key_name)
  if not key:
      print 'error, key does not exist'
      return
  data = key.get_contents_as_string()
  </code></pre>
  
  <p>sometimes (appears randomly) i get this exception:</p>
  
  <blockquote>
    <p>S3ResponseError: S3ResponseError: 404 Not Found</p>
  </blockquote>
  
  <p>NOTE: the file is uploaded by one server and then immediately afterwards another server (located in a different continent) is running the code above.</p>
  
  <p>the traceback:</p>
  
  <blockquote>
    <p>Traceback (most recent call last):   File "/test.py", line 222, in _process_response</p>
    
    <p>data = key.get_contents_as_string()   File "/usr/lib/python2.6/site-packages/boto-2.1.1-py2.6.egg/boto/s3/key.py",</p>
    
    <p>line 1201, in get_contents_as_string
        response_headers=response_headers)   File "/usr/lib/python2.6/site-packages/boto-2.1.1-py2.6.egg/boto/s3/key.py",</p>
    
    <p>line 1093, in get_contents_to_file
        response_headers=response_headers)   File "/usr/lib/python2.6/site-packages/boto-2.1.1-py2.6.egg/boto/s3/key.py",</p>
    
    <p>line 996, in get_file
        override_num_retries=override_num_retries)   File "/usr/lib/python2.6/site-packages/boto-2.1.1-py2.6.egg/boto/s3/key.py",</p>
    
    <p>line 211, in open
        override_num_retries=override_num_retries)   File "/usr/lib/python2.6/site-packages/boto-2.1.1-py2.6.egg/boto/s3/key.py",</p>
    
    <p>line 165, in open_read
        self.resp.reason, body) S3ResponseError: S3ResponseError: 404 Not Found </p>
    
    <p><Code>NoSuchKey</Code>The specified key does not
    exist.key_nameidhost_id</p>
  </blockquote>
  
  <p>so i get the key but then when i try and read from it i get 'not found'. 
  any idea ? </p>