refinitiv.data returns error while session was sucessfully opened

I am trying to run RDP library with Eikon Desktop, and experieincing to see below error while the session was successfully opened.

import refinitiv.data as rd
from refinitiv.data.content import symbol_conversion
rd.open_session()

An error occurred while requesting URL('http://localhost:9000/api/status').
RemoteProtocolError('Server disconnected without sending a response.')

<refinitiv.data.session.Definition object at 0x15ae18a1ea0 {name='workspace'}>
response = symbol_conversion.Definition("6501.T").get_data()
response.data.df
1709085140711.png

Please advise if there is anyway not to show that error message ?

An error occurred while requesting URL('http://localhost:9000/api/status').
RemoteProtocolError('Server disconnected without sending a response.')



Best Answer

  • Hi @noboru.maruyama4
    Would you mind please going through the troubleshooting steps here?

    If these do not work, I believe you may have another software on your machine using the local port 9000. This may be due to an antivirus update on your machine, these are often automatic.

Answers

  • @noboru.maruyama4

    Thank you for reaching out to us.

    You can try the following code.

    config = rd.get_config()
    config.set_param("logs.level", "CRITICAL")
    rd.open_session()