question

sdittmar avatar image
38 2 3 5

Why doesn't rdp.open_desktop_session raise an exception?

Why doesn't rdp.open_desktop_session('xxxxxxxxxx') raise an exception when it can not connect? It only writes to stout. That makes it impossible to handle/notify connection problems...

You can try the code below (while the Desktop is closed):

import refinitiv.dataplatform as rdp
try:
    rdp.open_desktop_session('<APIKey>')
except:
    print("You should see this print on exception")

Also, is there somewhere a proper documentation of the RDP library, I mean not those 6 pages docs but with all functions/methods/errors etc...?

rdp-api
10 |1500

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

umer.nalla avatar image
23.5k 84 10 22

Hi @sdittmar

Just to confirm that the above issue has been reported to both the RD Python Library and RDP Python library teams and should be addressed in a future release of each library.

10 |1500

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

umer.nalla avatar image
23.5k 84 10 22

Hi @sdittmar

In addition to my colleague's reply, I would recommend you look at the newer RD Library for Python - which is currently in Beta and due for release in the coming months.

It should have much-improved error/session handling than RDP Library once it is released.
It will also have fuller documentation - I have been advised by the RD Library team that they are awaiting the completion of the documentation to confirm the release date.

For a position statement on the older RDP Library please see the overview page.

10 |1500

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