RDP requests don't return anything
Hi, I have a problem with the RDP API accessed via Python. I have installed the package https://pypi.org/project/refinitiv-dataplatform/ and have followed the instructions from this notebook https://github.com/Refinitiv-API-Samples/Example.RDPLibrary.Python/blob/master/1.4.0%20-%20Function%20-%20News.ipynb. I think I was able to generate the token successfully, but the request to get the news headlines didn't return anything. There was no error message either, so it's difficult to debug. I have attached the screenshot so that you could have the full picture.
Best Answer
-
Please enable the logging and attach the output (you can remove any credential related output)
mySession = rdp.get_default_session()
mySession.set_log_level(1)Also, you can try the alternative 'Content Story and Headlines' examples under https://github.com/jasonramchandani/DeveloperDayResources/tree/master/RefinitivDataPlatformSampleCode
These examples output state information at the Session level and may therefore provide additional diagnostics.
0
Answers
-
Thanks, that's a very useful tip! After I run rdp.get_news_headlines('Apple'), the log says:
2020-02-04 11:31:00,370 P[11424] [MainThread 7256] HTTP request response 403: {"error":{"id":"08011b65-0ed4-48f6-8e50-f155bf2a1399","code":"insufficient_scope","message":"access denied. Scopes required to access the resource [trapi.data.news.read]","status":"Forbidden"}}
2020-02-04 11:31:00,371 P[11424] [MainThread 7256] News Headlines request failed: {'http_status_code': 403, 'http_reason': 'Forbidden', 'error': {'id': '08011b65-0ed4-48f6-8e50-f155bf2a1399', 'code': 'insufficient_scope', 'message': 'access denied. Scopes required to access the resource [trapi.data.news.read]', 'status': 'Forbidden'}}0 -
As per the message your account/login is not permissioned to access that particular data type.
For external users, I would recommend they speak to their Refinitiv account representative to discuss getting access to the required data.
0 -
Thank you for your prompt help. I am an internal user, so I'll go with the Service Now ticket.
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 685 Datastream
- 1.4K DSS
- 615 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 252 ETA
- 556 WebSocket API
- 38 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 652 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 193 TREP Infrastructure
- 228 TRKD
- 917 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛