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 -
we are not using a VPN0
Categories
- All Categories
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛