question

Upvotes
Accepted
1 1 1 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.

Hello @khalid.kha ,

Thank you for your participation in the forum.

Is the reply below satisfactory in resolving your query?

If yes, please click the 'Accept' text next to the appropriate reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.

Thanks,

-AHS

Hi @khalid.kha,

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.


Thanks,

AHS

Upvotes
Accepted
32.2k 40 11 20

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
24.7k 54 17 14

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.

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.