question

Upvotes
Accepted
1 0 0 1

RDP session opening in python

Hello,


I me new on rdp, that was well installed, but still struglling to open a session to use it. I used the same user id and password as the ones for registration

using the bewllo lines in Jupiter and Spyder:

rdp.open_platform_session(

'8e9bxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1b035d',

rdp.GrantPassword(

'khalid.kha',

'toto'

)

)

session.open()


I got the below error:

ERROR!!! Failed to request a new token......         Token requested error b'{"error":"invalid_client"  ,"error_description":"Invalid Application Credential." } ' ERROR!!! response 401 while requesting URL('https://api.refinitiv.com/auth/oauth2/v1/token').      {"error":"invalid_client"  ,"error_description":"Invalid Application Credential." } ERROR!!! authentication handler raise an exception. HTTPStatusError("Client error '401 Unauthorized' for url 'https://api.refinitiv.com/auth/oauth2/v1/token'\nFor more information check: https://httpstatuses.com/401")
                    #   failed to request an authorized in the thread loop
--> 307                     raise PlatformSessionError(-1, self._session._last_event_message)
    308                 if not self._session.server_mode:
    309                     #   do nothing because the server-mode is disabled

PlatformSessionError: Error code -1 | ERROR!!! response 401 while requesting URL('https://api.refinitiv.com/auth/oauth2/v1/token').      {"error":"invalid_client"  ,"error_description":"Invalid Application Credential." } 


Any help please ??

Please note, that I see in the forum the related posts, and used all combinations without success.

Thanks and regards.

rdp
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.

Upvotes
Accepted
28.3k 30 11 15

Hello @khalid.kha ,

Please note that credentials for developers portal and forums are not the same credentials to be used to authenticate with Refintiv Data Platform(RDP).

RDP credentials are the ones included in your personal RDP welcome letter email.

Please contact your organization's Refinitiv account manager to discuss your requirement and to register for RDP if required.


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.

Upvote
14.3k 23 8 12

Hello @khalid.kha

Once you got your RDP welcome email, you can follow the steps in the "Getting Started for User ID" section of the Getting Started with Refinitiv Data Platform article to set up your credentials.

You can verify your RDP credentials via the RDP API Playground website (https://apidocs.refinitiv.com/Apps/ApiDocs).


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.