Error when using HistoricalPricing.get_events with open_desktop_session

Hello,
I get the below error when using the below code. The same code works well with open_platform_session.
Error:
'{"code":401,"message":"An empty location header is received while retrieving RDP access token","statusMessage":"Unauthorized"}'
This is my code:
import os
import refinitiv.dataplatform as rdp
app_key = os.environ['REFINITIV_APP_KEY']
rdp.open_desktop_session(app_key)
response = rdp.HistoricalPricing.get_events('VOD.L')
print(response.data.df)
Best Answer
-
Hello @s397432 and all,
Conveying the resolution from the relevant support case;
"
As per checking and confirmation with our Entitlements Team, your account does not include the RDP Package, hence, you have no access or permission. To request entitlement or add RDP Package in your account, please engage with your Account Manager ... "
0
Answers
-
Hello @s397432 ,
I have tested the following:
import os
import refinitiv.dataplatform as rdp
app_key = 'myValidAPPKey'
rdp.open_desktop_session(app_key)
response = rdp.HistoricalPricing.get_events('VOD.L')
print(response.data.df)Getting back the valid result, therefore, do not believe there is an issue with your code.
I would like to suggest, to re-test the same code with the latest RDP library, by upgrading it to the latest on your test python environment:
python -m pip install refinitiv-dataplatform --upgrade
as this looks like one of the issues, known in one of the older releases, and then fixed by the next RDP library release.
You may also wish, to take the opportunity to test with the next generation of RDP API Libraries: Refinitiv Data Library
0 -
Upgrading has not changed anything, issue is still ongoing
0 -
Hi @s397432
Can you please advise what if anything the following returns
display(response.status)
and possibly
display(response.data.raw)
0 -
response.status => {'http_status_code': 401, 'http_reason': 'Unauthorized'}
response.data.raw => {'code': 401, 'message': 'An empty location header is received while retrieving RDP access token', 'statusMessage': 'Unauthorized'}
0 -
Hi @s397432
So, the above indicates that your Eikon licence does not seem to include historical data - certainly not for the VOD.L RIC.
Can you try a typically 'free' RIC such as EUR= - just to see if that works for you?
Regardless, you should speak to your Refinitiv Account team to discuss your Eikon Licence flavour.
ADD: Have any RDP type calls to a Desktop session worked for you? I am not an Eikon licensing expert, but my understanding is that certain Eikon Licences do not allow any API access?
0 -
I have the same error with EUR=
Moreover, this function works very well with open_platform_session using the above 2 RICs. Is really a licensing issue or a technical issue ?
0 -
streaming data works using Desktop session
0 -
hi @s397432
The data/content licenced for you MachineId etc used for a platform session can well differ to the content licenced for the Eikon product.
I can access the above data using both desktop session and platform session - however, I also occasionally find some data/content that I can access with Desktop but not with Platform and vice-versa.
One thing I forgot to ask - what version of the RDP library are you using - in case it is an older buggy one?
I am using
rdp.__version__
1.0.0a13See PyPi for the latest version
0 -
I am using the same version as you, you can see in my previous reply that I have just upgraded.
0 -
Hi @s397432
Thanks for confirming. In which case, please reach out to your Refinitiv Account team - so they can check your historical data API access in Eikon/Workspace.
0 -
@s397432
Please hang fire - a colleague has suggested this could be an API Proxy issue? Will update soon. Thanks
0 -
Hi @s397432
Are you connecting via a company VPN? If so, can you confirm it works without a VPN?
As mentioned earlier, this does appear to be an Eikon API Proxy issue and the Proxy team are still investigating...
0 -
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
- 690 Datastream
- 1.5K DSS
- 629 Eikon COM
- 5.2K Eikon Data APIs
- 11 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 255 ETA
- 560 WebSocket API
- 39 FX Venues
- 15 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 25 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 281 Open PermID
- 46 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 23 RDMS
- 2K Refinitiv Data Platform
- 724 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
- 106 UPA
- 194 TREP Infrastructure
- 229 TRKD
- 918 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 95 Workspace SDK
- 11 Element Framework
- 5 Grid
- 19 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛