ERROR!!! An error occurred while requesting URL('http://localhost:9060/api/rdp/discovery/search/v1/'

I get this error when I run code using a python editor (VSCode). This issue randomly pops up and usually resolves itself after a few minutes, but now it's not working at all. I checked and i can run the code using Eikon's Codebook app.

The code breaks at line 10.


1684262540559.png


Best Answer

  • raksina.samasiri
    Answer ✓

    Hi @andyd123 ,

    I would recommend you look at the
    newer RD Library for Python. For a position statement on the older
    RDP Library please see the overview page.

    Could you please try the RD Library with the code below and let me know in case there's any further questions.

    import refinitiv.data as rd
    rd.open_session()

    rd.discovery.search(
    view = rd.discovery.Views.GOV_CORP_INSTRUMENTS,
    top = 5,
    query = "Santander",
    select = "ParentOAPermID"
    )
    1684300503856.png