Connection refused while subscribing via Python

1 post / 0 new
Connection refused while subscribing via Python

I got a 'Connection refused' error while doing a subscribe operation (via Python, even if it doesn't appear to be too python-specific - backtrace follows), and the error persists even retrying a few times (up to 8). Can this happen, or am I doing something wrong? (I am using the demo.) I also noticed that this only happens around 20h UTC, during other moments of the day retrying to connect is generally OK. What is the expected behavior, something like waiting a few seconds and retrying? I would like to be able to have a program that does not need constant human supervision.

Thanks for the help
Kind regards

Traceback (most recent call last):
File "/usr/lib/python3.5/urllib/", line 1254, in do_open
h.request(req.get_method(), req.selector,, headers)
File "/usr/lib/python3.5/http/", line 1107, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python3.5/http/", line 1152, in _send_request
File "/usr/lib/python3.5/http/", line 1103, in endheaders
File "/usr/lib/python3.5/http/", line 934, in _send_output
File "/usr/lib/python3.5/http/", line 877, in send
File "/usr/lib/python3.5/http/", line 1253, in connect
File "/usr/lib/python3.5/http/", line 849, in connect
(,self.port), self.timeout, self.source_address)
File "/usr/lib/python3.5/", line 712, in create_connection
raise err
File "/usr/lib/python3.5/", line 703, in create_connection
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "./", line 94, in
File "/home/maurizio/chrysopoeia/", line 134, in act
File "/home/maurizio/chrysopoeia/", line 232, in act_apply_strategy
self.watch_key = self.comm.start_watch(,
File "/home/maurizio/chrysopoeia/", line 134, in start_watch
raise e
File "/home/maurizio/chrysopoeia/", line 126, in start_watch
key = self.ig_stream_service.ls_client.subscribe(subscription_active)
File "/home/maurizio/.local/lib/python3.5/site-packages/trading_ig-0.0.6-py3.5.egg/trading_ig/", line 282,
in subscribe
File "/home/maurizio/.local/lib/python3.5/site-packages/trading_ig-0.0.6-py3.5.egg/trading_ig/", line 163,
in _control
File "/home/maurizio/.local/lib/python3.5/site-packages/trading_ig-0.0.6-py3.5.egg/trading_ig/", line 144,
in _call
File "/usr/lib/python3.5/urllib/", line 163, in urlopen
return, data, timeout)
File "/usr/lib/python3.5/urllib/", line 466, in open
response = self._open(req, data)
File "/usr/lib/python3.5/urllib/", line 484, in _open
'_open', req)
File "/usr/lib/python3.5/urllib/", line 444, in _call_chain
result = func(*args)
File "/usr/lib/python3.5/urllib/", line 1297, in https_open
context=self._context, check_hostname=self._check_hostname)
File "/usr/lib/python3.5/urllib/", line 1256, in do_open
raise URLError(err)