Open RichardBruskiewich opened 5 years ago
@tknijnen The following step in the notebook "2019_01_02_workflow8_TAKunderconstruction.ipynb":
network.iloc[:, 1:].to_csv('tmp.csv', sep='\t', header=None, index=None) files = {'file': open('tmp.csv', 'rb')} ddot_host = f'http://{ucsd_hostname}:8383' ddot_route = '/api/ontology' ddot_query = '?alpha=0.007&beta=0.5' url = '{}{}{}'.format(ddot_host, ddot_route, ddot_query) print(url) ndex_url = 'http://test.ndexbio.org/#/network/' r = requests.post(url, files=files) if r is not None and r.text is not None: uuid = r.text print('{}{}'.format(ndex_url, uuid))
triggers the following runtime error:
--------------------------------------------------------------------------- TimeoutError Traceback (most recent call last) /anaconda3/lib/python3.7/site-packages/urllib3/connection.py in _new_conn(self) 158 conn = connection.create_connection( --> 159 (self._dns_host, self.port), self.timeout, **extra_kw) 160
... LONG ERROR TRACE then...
/anaconda3/lib/python3.7/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies) 514 raise SSLError(e, request=request) 515 --> 516 raise ConnectionError(e, request=request) 517 518 except ClosedPoolError as e: ConnectionError: HTTPConnectionPool(host='ec2-52-37-226-115.us-west- 2.compute.amazonaws.com', port=8383): Max retries exceeded with url: /api/ontology?alpha=0.007&beta=0.5 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x1126d68d0>: Failed to establish a new connection: [Errno 60] Operation timed out'))
@tknijnen The following step in the notebook "2019_01_02_workflow8_TAKunderconstruction.ipynb":
triggers the following runtime error:
... LONG ERROR TRACE then...