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.

Tagged:

Best Answer

  • zoya faberov
    zoya faberov ✭✭✭✭✭
    Answer ✓

    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.


Answers