Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Refinitiv Data Platform /
  • Refinitiv Data Platform Libraries /
avatar image
Question by alex.yermolayev · Jan 06, 2020 at 02:26 PM · eikonpython apipython eikonrdp

RDP authentication error

Hello! I am trying to set up an RDP session as indicated here:

https://github.com/Refinitiv-API-Samples/Example.RDPLibrary.Python

rdp.open_platform_session(    '8e9bxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1b035d',     rdp.GrantPassword(        'my_login',         'my_password'    ) )

Using the app key generated for EDP API (from App Key Generator on the terminal) and typical login/password credentials I am using for Eikon, but get a Logging error.

Message: ElektronError(-1, 'TypeError("Expected object of type bytes or bytearray, got: <class \'str\'>")') Arguments: ('EDP Authentication failed',)

Could you help me please, what I am doing wrong?

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

2 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by umer.nalla · Jan 07, 2020 at 11:47 AM

Hi @alex.yermolayev

Are you unable to get any headlines, regardless of the query?

I tried to recreate your scenario and whilst I can get headlines from a Platform session, I cannot get any from a Desktop session either.

I have already emailed the product owner to report this - as you are aware the Refinitiv Data Platform library is in Beta.


Comment
alex.yermolayev

People who like this

1 Show 2 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
alex.yermolayev · Jan 07, 2020 at 01:42 PM 0
Share

Hi @ Umer, yes, I cannot get any headlines, regardless of the query if I am using a desktop session.

And I cannot log into Platform session at all, I get a Logging error as described above. Do I need to use any specific credentials to open a Platform session? Many thanks.

avatar image
REFINITIV
umer.nalla ♦♦ alex.yermolayev · Jan 07, 2020 at 01:49 PM 1
Share

Hi @alex.yermolayev

A Platform session will require a Refinitiv Data Platform account - you can request a trial from your Refinitiv Account manager if you wish. If you don't know who this is, let me know and I can try and reach out to them internally - so they can contact you directly.

Or you can use the Eikon Data API as suggested by Olivier Davant in his reply above.

avatar image
REFINITIV
Answer by Gurpreet · Jan 06, 2020 at 02:32 PM

Hi @alex.yermolayev, Your Eikon credentials cannot be used with RDP platform session. Please use a desktop session for that.

Eikon has to be running on the local machine. The generated APP KEY should have Eikon scope selected.

rdp.open_desktop_session(APP_KEY)
Comment
alex.yermolayev

People who like this

1 Show 5 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
REFINITIV
Olivier DAVANT ♦♦ · Jan 07, 2020 at 01:34 PM 1
Share

Hi @alex.yermolayev,

Access to the Refinitiv Data Platform News service via a DesktopSession is not yet possible with this version of the service. Currently this only works with a PlatformSession (that requires Refinitiv Data Platform credentials) or alternatively with the get_news_headlines() function of the Eikon Data API (more details in this tutorial).
Another possible option is to use the DesktopSession to subscribe to streaming news headlines (here is an example).

FYI,
Refinitiv Data Platform Library functions return None in case of error. More details about the error can be retrieved using the rdp.get_last_status() function.

avatar image
alex.yermolayev Olivier DAVANT ♦♦ · Jan 07, 2020 at 01:48 PM 0
Share

Hi @Olivier Davant,

I see. What do you mean under Refinitiv Data Platform Credentials, how are they different from Eikon Premium package credentials and how can I apply to get those?

The problem is that even with the Desktop Session I get "None" returned for all news headlines searches.

Many thanks.

avatar image
REFINITIV
Olivier DAVANT ♦♦ alex.yermolayev · Jan 07, 2020 at 03:18 PM 1
Share

By Refinitiv Data Platform credentials I mean a machine account (or user account) for a direct connection to the Refinitiv Data Platform via a PlatformSession. These accounts are part of our Enterprise offering and are not covered your Eikon Premium Package (This may be a conversation to have with your Refinitiv Account Manager).

The DesktopSession you are using connects to the Refinitiv Data Platform via Eikon using you Eikon credentials (login). Unfortunately the news service of the platform does not allow Eikon users to retrieve news headlines yet. This is why you're receiving a None value. This will eventually change but I don't know when.

avatar image
alex.yermolayev · Jan 06, 2020 at 02:37 PM 0
Share

Hi @Gurpreet. Many thanks, I tried this. I am able to open a desktop session, but when I follow the instructions here: https://github.com/Refinitiv-API-Samples/Example.RDPLibrary.Python

Namely, trying to get the news for "LFR", I get nothing returned. Please see:

rdp.get_news_headlines(query = 'LFR', count = 350)

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
12 People are following this question.

Related Questions

RDP Python API performance

Python RDP API does not use proxy server when connecting

How do I retrieve index constituents in RDP/Python

RDP in Python not connecting despite valid App Key

issue to use refinitiv_dataplatform with python

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges