You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 10, 2024. It is now read-only.
if proxy is configured in boto config file the script is checking OS for proxy configuration anyway and in some cases like SLES the no_proxy variable values are 'comma + space' separated. This results in skip_proxy with false.
me@host:~> cat s3.py
import boto
import boto.s3.connection
conn = boto.connect_s3(
aws_access_key_id = '***',
aws_secret_access_key = '***',
host = '***',
calling_format = boto.s3.connection.OrdinaryCallingFormat())
for bucket in conn.get_all_buckets():
print (bucket.name, bucket.creation_date)
Better example:
me@host:~> export no_proxy='localhost,127.0.0.1,.randomdomain.com' ; python s3.py
#bucket: test 2019-11-29T16:00:57.532Z
me@host:~> export no_proxy='localhost, 127.0.0.1, .randomdomain.com' ; python s3.py
Traceback (most recent call last):
File "s3.py", line 4, in <module>
for bucket in conn.get_all_buckets():
File "/usr/lib/python2.7/site-packages/boto/s3/connection.py", line 443, in get_all_buckets
response = self.make_request('GET', headers=headers)
File "/usr/lib/python2.7/site-packages/boto/s3/connection.py", line 671, in make_request
retry_handler=retry_handler
File "/usr/lib/python2.7/site-packages/boto/connection.py", line 1071, in make_request
retry_handler=retry_handler)
File "/usr/lib/python2.7/site-packages/boto/connection.py", line 1028, in _mexe
raise BotoServerError(response.status, response.reason, body)
boto.exception.BotoServerError: BotoServerError: 503 Service Unavailable
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi boto community,
if proxy is configured in boto config file the script is checking OS for proxy configuration anyway and in some cases like SLES the no_proxy variable values are 'comma + space' separated. This results in skip_proxy with false.
Added some prints to debug:
This starts here: (fine only if no_proxy values are just comma separated)
boto/boto/connection.py
Line 720 in 91ba037
working ("just comma separated"):
not working ("comma + space" separated):
If I change the above code to (with extra space for split) then it starts to work in opposite way:
for name in self.no_proxy.split(', '):
Kind regards,
KrzMar
The text was updated successfully, but these errors were encountered: