You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/08/01 10:49:20 UTC

[jira] [Commented] (LIBCLOUD-842) Azure blob storage - 'Error initializing upload. Code: 400'

    [ https://issues.apache.org/jira/browse/LIBCLOUD-842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15401827#comment-15401827 ] 

ASF GitHub Bot commented on LIBCLOUD-842:
-----------------------------------------

GitHub user lmorfitt opened a pull request:

    https://github.com/apache/libcloud/pull/845

    Fix for AzureBlobStorage not allowing upload with 400 error (https://…

    ## Changes Title (replace this with a logical title for your changes)
    
    ### Description
    
    Replace this with the PR description (mention the changes you have made, why
    you have made them, provide some background and any references to the provider
    documentation if needed, etc.).
    
    For more information on contributing, please see [Contributing](http://libcloud.readthedocs.org/en/latest/development.html#contributing)
    section of our documentation.
    
    ### Status
    
    Replace this: describe the PR status. Examples:
    
    - work in progress
    - done, ready for review
    
    ### Checklist (tick everything that applies)
    
    - [ ] [Code linting](http://libcloud.readthedocs.org/en/latest/development.html#code-style-guide) (required, can be done after the PR checks)
    - [ ] Documentation
    - [ ] [Tests](http://libcloud.readthedocs.org/en/latest/testing.html)
    - [ ] [ICLA](http://libcloud.readthedocs.org/en/latest/development.html#contributing-bigger-changes) (required for bigger changes)
    
    …issues.apache.org/jira/browse/LIBCLOUD-842). The issue was created when a fix for "AWSRequestSignerAlgorithmV4" (https://github.com/apache/libcloud/commit/4bff0f076776e6d59945381c1e2969826131fc11) was added. This caused the heads "host" and "accept_encoding" to be removed from the requests to AzureBlobStorage. The Fix retains the current functionality and sets the headers on for Azure.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/lmorfitt/libcloud trunk

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/libcloud/pull/845.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #845
    
----
commit 0c60a3ad4138db3e59772fea85438509b118497b
Author: Luke Morfitt <lu...@lukes-macbook-pro.local>
Date:   2016-08-01T10:47:08Z

    Fix for AzureBlobStorage not allowing upload with 400 error (https://issues.apache.org/jira/browse/LIBCLOUD-842). The issue was created when a fix for "AWSRequestSignerAlgorithmV4" (https://github.com/apache/libcloud/commit/4bff0f076776e6d59945381c1e2969826131fc11) was added. This caused the heads "host" and "accept_encoding" to be removed from the requests to AzureBlobStorage. The Fix retains the current functionality and sets the headers on for Azure.

----


> Azure blob storage - 'Error initializing upload. Code: 400'
> -----------------------------------------------------------
>
>                 Key: LIBCLOUD-842
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-842
>             Project: Libcloud
>          Issue Type: Bug
>          Components: Storage
>         Environment: Production
>            Reporter: Luke Morfitt
>              Labels: blobstore, storage_drivers
>
> When using libcloud version 1.1.0 with azure blob storage we are seeing the following error. This issue does not appear in 0.20.1 and we are currently investigating the differences between the two releases. 
> {code}
> Upload Thread - Unhandled exception - Error initializing upload. Code: 400 - <LibcloudError in <libcloud.storage.drivers.azure_blobs.AzureBlobsStorageDriver object at 0x7f1e2778b790> 'Error initializing upload. Code: 400'>
> Traceback (most recent call last):
>   File "/usr/local/gamesparks/analytics_upload.py", line 383, in FileUploadThread
>     object_name=bname)
>   File "/usr/local/lib/python2.7/dist-packages/libcloud/storage/drivers/azure_blobs.py", line 838, in upload_object_via_stream
>     use_lease=ex_use_lease)
>   File "/usr/local/lib/python2.7/dist-packages/libcloud/storage/drivers/azure_blobs.py", line 935, in _put_object
>     iterator=iterator)
>   File "/usr/local/lib/python2.7/dist-packages/libcloud/storage/base.py", line 654, in _upload_object
>     **upload_func_kwargs)
>   File "/usr/local/lib/python2.7/dist-packages/libcloud/storage/drivers/azure_blobs.py", line 612, in _upload_in_chunks
>     (response.status), driver=self)
> LibcloudError: <LibcloudError in <libcloud.storage.drivers.azure_blobs.AzureBlobsStorageDriver object at 0x7f1e2778b790> 'Error initializing upload. Code: 400'>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)