Hi,
Stated in the doc is the fact that the port Eikon is listening to should be detected automatically.
I try to connect to a running instance of Eikon on one machine but get an error:
2019-04-26 11:32:39,484 [36444] ERROR pyeikon: Error on checking port 9000 : HTTPConnectionPool(host='localhost', port=9000): Max retries exceeded with url: /api/v1/data (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x00000000095818D0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))
20
From the error message I take that it is trying to read from port 9000. The application seems to be listening on 9001 (sse attached).
I corrected my code to try to listen to this port:
def session_scope(id='xxxx',close_on_completion=False, port = None):
"""Provide a transactional scope around a series of operations."""session = ek
try:
if port:
session.set_port_number(port)
session.set_app_key(id)
yield session
except Exception as err:
session.stop()
raise ExcTbFin_Connection('Error connecting to Reuters with api id: {}'.format(id)) from err
finally:
if close_on_completion:
session.stop()
I run it with port 9001 and check that the set_port_number line is executed.
Any help from Refinitiv on this ?
Best
Cyril Godart
issueportnumber.png