Boto cannot connect to SQS endpoint in proxy environment
hap2711 opened this issue · comments
Hello,
I am using celery for running asynchronous tasks in my Django project with Amazon SQS as the broker. I have the necessary IAM policies set up. I am running this in an environment behind a proxy and I use the HTTPS_PROXY environment variable. I see that celery/kombu tries to reach out to us-west-2.queue.amazonaws.com but is unable to reach it. I found that in boto/connection.py, the _mexe method encounters http exceptions. I want to be sure boto is picking up the proxy environment variable. If it isnt, how can I configure this?
Celery logs
[2018-02-22 02:03:48,266: DEBUG/MainProcess] encountered error exception, reconnecting
[2018-02-22 02:03:48,266: DEBUG/MainProcess] establishing HTTPS connection: host=us-west-2.queue.amazonaws.com, kwargs={'port': 443, 'timeout': 70}
[2018-02-22 02:03:56,870: DEBUG/Beat] encountered timeout exception, reconnecting
celery version: 3.1.25
kombu version: 3.0.37
boto==2.48.0
boto3==1.5.33
botocore==1.8.47
This was because I was missing the http_proxy env variable