question

Upvotes
Accepted
1 0 0 0

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

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


#technology#productpython apirdprdp search
1684262540559.png (31.7 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
Upvotes
Accepted
14k 30 5 10

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


1684300503856.png (17.5 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.