Skip to content
This repository was archived by the owner on Jun 11, 2024. It is now read-only.

Workflow 8 runtime error? #60

Open
RichardBruskiewich opened this issue Mar 1, 2019 · 0 comments
Open

Workflow 8 runtime error? #60

RichardBruskiewich opened this issue Mar 1, 2019 · 0 comments

Comments

@RichardBruskiewich
Copy link
Contributor

RichardBruskiewich commented Mar 1, 2019

@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'))
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant