: HTTPSConnectionPool(host='', port=443): Max retries exceeded with url: /rest/datasource/exports/local?pretty=true (Caused by NewConnectionError(': Failed to establish a new connection: Connection timed out',))Ĭan anybody help with this? Any kind of help or advice will be appreciated. Raise MaxRetryError(_pool, url, error or ResponseError(cause)) Method, url, error=e, _pool=self, _stacktrace=sys.exc_info()įile "/usr/local/lib/python3.6/site-packages/urllib3/util/retry.py", line 446, in increment
: : Failed to establish a new connection: Connection timed outįile "/usr/local/lib/python3.6/site-packages/requests/adapters.py", line 449, in sendįile "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 727, in urlopen Self, "Failed to establish a new connection: %s" % e I think there were some changes in this area for python 2.7 and possible the version of the client you have is out of date. TimeoutError: Connection timed outĭuring handling of the above exception, another exception occurred:įile "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 677, in urlopenįile "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 381, in _make_requestįile "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 978, in _validate_connįile "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 309, in connectįile "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 172, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kwįile "/usr/local/lib/python3.6/site-packages/urllib3/util/connection.py", line 84, in create_connectionįile "/usr/local/lib/python3.6/site-packages/urllib3/util/connection.py", line 74, in create_connection (Python 3)įile "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 160, in _new_conn We are sending POST requests in the AWS Glue, and are using python requests library to do that. It shows timeout error on and off(There's no pattern when it works and when it doesn't), and cannot figure the reason out. I need to select the location and shop name before each extraction. So, after installed few libraries and setup NAT, it now can send requests to API.We are suffering from timeout error when we send POST requests for Paxata to get data from it. Data extraction task using python 6 days left VERIFIED I need a script to automate data extraction. It says that private network need NAT configured. I've found out that the problem is on the airflow that I am using. I've read some articles that you need to include proxy when sending requests, but what proxy should I used? (self._dns_host, self.port), self.timeout, **extra_kwįile "/opt/python3.6/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connectionįile "/opt/python3.6/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection ERROR - HTTPSConnectionPool(host='xxx.com', port=443): Max retries exceeded with url: /sf/xxx/token?grant_type=password&username=?%40?&password=?%2?&client_id=?&client_secret=? (Caused by NewConnectionError(': Failed to establish a new connection: Connection timed out',))įile "/opt/python3.6/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn I keep getting ' Connection timed out' when I tried to call an API using Python on Airflow that provided by Google Cloud Composer.Īnd the response when I tried to trigger DAG is this: