You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by GitBox <gi...@apache.org> on 2019/12/11 11:13:35 UTC

[GitHub] [libcloud] 570096 opened a new issue #1379: S3 Drivers issue.

570096 opened a new issue #1379: S3 Drivers issue.
URL: https://github.com/apache/libcloud/issues/1379
 
 
   **## Summary**
   Uploading a file into S3 . I am getting below error.
   
   _ERROR:_
   `**<LibcloudError in <class 'libcloud.storage.drivers.s3.S3StorageDriver'> 'This bucket is located in a different region. Please use the correct driver.'>**`
   
   **## Detailed Information**
   Version of libcloud:  2.6.1
   Python version: 3.7
   _**code:**_
   ```
   `import libcloud
   from libcloud.storage.types import Provider
   from libcloud.storage.providers import get_driver
   FILE_PATH = 'filepath' 
   cls = get_driver(Provider.S3)
   driver = cls('api key','api secret key')
   container = driver.get_container(container_name='my-backups-12345')
   ```
   In  the above code i mentioned correct driver then also am getting below error.please help me on this issue.Am I missing something?
   
   ![image](https://user-images.githubusercontent.com/41354386/70616592-d1165400-1c34-11ea-9f82-1aae5c287e3b.png)
   
   
   
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services