Closed GreyArea765 closed 4 years ago
@GreyArea765 - Thank you for your post. As you have already mentioned that it is only reproducible in certain type of network, can you please provide me some details about the network where you are getting this error ? Have you configured credentials in that environment except providing in session ?
I only reproduced this issue when 's3' parameter is set as string type in ~/.aws/config file. My guess is that somehow your code is using credentials where 's3' parameter is set wrongly in config file. But i would need some more information about the environment in that network to reproduce the issue.
scoped_config.get('s3', {})
this value should be of type dict but it is giving string type. Can you please print the value of scoped_config before this line enabled = self.scoped_config.get('s3', {}).get( 'use_dualstack_endpoint', False)
where you are getting error to see whether your scoped config contains 's3' parameter or not ?
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.
Just started to learn boto3 with NetApp StorageGRID, I'm receiving the above exception when trying to list buckets from "S3 Compatible" storage (NetApp StorageGRID). Please note that this only happens when the code is run from a certain network, it runs fine elsewhere so this is a bit of a head scratcher. I don't have a problem using tools such as Cloudberry explorer in this network using the same endpoint/credentials so I'd like to try and understand what is causing the exception.
See the below code,configure access key and secret key as needed. The ENDPOINT_URL is configured as
Config_Class
Test_Code
Traceback