---------------------------------------------------------------------------
ConnectionError Traceback (most recent call last)
<ipython-input-3-91da54d90153> in <module>()
1 # Get attached primitive list
2 import requests
----> 3 r = requests.get('http://127.0.0.2:8888/primitive/list.json')
4 r.json()
C:\Users\jguichar\Anaconda\lib\site-packages\requests\api.pyc in get(url, params, **kwargs)
65
66 kwargs.setdefault('allow_redirects', True)
---> 67 return request('get', url, params=params, **kwargs)
68
69
C:\Users\jguichar\Anaconda\lib\site-packages\requests\api.pyc in request(method, url, **kwargs)
51 # cases, and look like a memory leak in others.
52 with sessions.Session() as session:
---> 53 return session.request(method=method, url=url, **kwargs)
54
55
C:\Users\jguichar\Anaconda\lib\site-packages\requests\sessions.pyc in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
466 }
467 send_kwargs.update(settings)
--> 468 resp = self.send(prep, **send_kwargs)
469
470 return resp
C:\Users\jguichar\Anaconda\lib\site-packages\requests\sessions.pyc in send(self, request, **kwargs)
574
575 # Send the request
--> 576 r = adapter.send(request, **kwargs)
577
578 # Total elapsed time of the request (approximately)
C:\Users\jguichar\Anaconda\lib\site-packages\requests\adapters.pyc in send(self, request, stream, timeout, verify, cert, proxies)
435 raise RetryError(e, request=request)
436
--> 437 raise ConnectionError(e, request=request)
438
439 except ClosedPoolError as e:
ConnectionError: HTTPConnectionPool(host='127.0.0.2', port=8888): Max retries exceeded with url: /primitive/list.json (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x049EC3F0>: Failed to establish a new connection: [Errno 10061] Aucune connexion n\x92a pu \xeatre \xe9tablie car l\x92ordinateur cible l\x92a express\xe9ment refus\xe9e',))