libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Quentin Pradet (JIRA)" <>
Subject [jira] [Created] (LIBCLOUD-914) s3.upload_object_via_stream now returns a generic error
Date Wed, 03 May 2017 13:49:04 GMT
Quentin Pradet created LIBCLOUD-914:

             Summary: s3.upload_object_via_stream now returns a generic error
                 Key: LIBCLOUD-914
             Project: Libcloud
          Issue Type: Bug
          Components: Storage
            Reporter: Quentin Pradet

Consider the following snippet:

import io
from import Container
from import GoogleStorageDriver

driver = GoogleStorageDriver(key='GOOG0123456789ABCXYZ', secret='garbage')
container = Container(name='container', driver=driver, extra={})
driver.upload_object_via_stream(io.BytesIO(b' '), container, 'path')

I use wrong credentials on purpose. With libcloud 1.5.0, {{upload_object_via_stream}} raises
libcloud.common.types.InvalidCredsError. With libcloud 2.0.0 and trunk, this returns the generic
{{libcloud.common.types.LibcloudError}} with the message {{'Object upload failed, Perhaps
a timeout?'}}.

Is it possible to restore the old behavior?

Thanks for libcloud.

This message was sent by Atlassian JIRA

View raw message