Hello, I m getting the above issue while running all aws commands. Is it a bug or there is any fix available for it? I tried reinstalling awscli as well but still the issue persists
'AWSHTTPSConnection' object has no attribute 'server_hostname'
@kp625544 can you share output of aws --version
? I was having kind of similar issue before (for different attribute), then found out that my botocore
version was kind of old.
Debug log for any aws command might be helpful as well.
aws-cli/1.11.13 Python/3.5.2 Linux/4.15.0-43-generic botocore/1.4.70
Solved.
I removed the package from linux
sudo apt-get remove awscli
and the reinstalled with pip
sudo python -m pip install --upgrade awscli
Maybe this will be helpful to someone else, but I encountered this problem on someone else's computer and it was related to the version of requests
that was installed. I'm not sure what version they had before, but they removed it and reinstalled it along with urllib3
and the problem went away
Edit It looks like the problem happens with requests
version 2.23 but is fine with version 2.18.4
In Conclusion:
botocore 1.8.48 requests 2.18.4 urllib3 1.22 = OK
botocore 1.8.48 requests 2.23 urllib3 1.24.8 = ERROR
Most helpful comment
Solved.
I removed the package from linux
sudo apt-get remove awscli
and the reinstalled with pip
sudo python -m pip install --upgrade awscli