Eikon API Proxy requires authentication.

Hello, could you please help me to bypass the following error?
EikonError: Error code 401 | Client Error: Unauthorized - Eikon API Proxy requires authentication.
Output:
runfile('C:/Anaconda3/Lib/site-packages/eikon/test.py', wdir='C:/Anaconda3/Lib/site-packages/eikon')
Error code 401 | Client Error: Unauthorized - Eikon API Proxy requires authentication.
Traceback (most recent call last):
File "<ipython-input-13-af335af83c7d>", line 1, in <module>
runfile('C:/Anaconda3/Lib/site-packages/eikon/test.py', wdir='C:/Anaconda3/Lib/site-packages/eikon')
File "C:\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 704, in runfile
execfile(filename, namespace)
File "C:\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 108, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)
File "C:/Anaconda3/Lib/site-packages/eikon/test.py", line 10, in <module>
ek.get_news_headlines('R:LHAG.DE', date_from='2017-04-05T09:00:00', date_to='2017-04-05T18:00:00')
File "C:\Anaconda3\lib\site-packages\eikon\news_request.py", line 120, in get_news_headlines
result = eikon.json_requests.send_json_request(News_Headlines_UDF_endpoint, payload, debug=debug)
File "C:\Anaconda3\lib\site-packages\eikon\json_requests.py", line 100, in send_json_request
raise_for_status(response)
File "C:\Anaconda3\lib\site-packages\eikon\json_requests.py", line 191, in raise_for_status
raise EikonError(response.status_code, error_msg)
EikonError: Error code 401 | Client Error: Unauthorized - Eikon API Proxy requires authentication.
Best Answer
-
@dmitry.sarin Eikon seemed to have lost the session with the platform, and a simple restart will fix this.
If this continues happening, let us know.
0
Answers
-
@dmitry.sarin could you share the code that you are trying to execute and describe your set up please (Eikon/Eikon Proxy on MacOS/Windows)?
0 -
It's Eikon/Windows
I just got the API key and tried the set example provided in the intro section
import eikon as ek
ek.set_app_key('***')
ek.get_news_headlines('R:LHAG.DE', date_from='2017-04-05T09:00:00', date_to='2017-04-05T18:00:00')0 -
@dmitry.sarin could you please restart your Eikon and try again? I had a look at your key, it works fine.
0 -
All works, thank you very much for your help!
0 -
@Zhenya Kovalyov I am getting the same error, even after restarting Eikon. Tried with a new App key, still error. It was working fine a couple of days ago. The code I run (on windows) is:
import eikon as ek
ek.set_app_key(my app key)
df = ek.get_timeseries(["MSFT.O"],start_date="2016-01-01", end_date="2016-01-10")I get
Error code 401 | Client Error: Eikon API Proxy requires authentication
0 -
Restarting Eikon didn't work for me. Restarting my pc did though...
0 -
Is there anyway to refresh the session in order to avoid restartng the PC or EIKON?
0 -
No, there isn't. See this thread for the explanation of the mechanism of the issue.
0
Categories
- All Categories
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 683 Datastream
- 1.4K DSS
- 613 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
- 248 ETA
- 552 WebSocket API
- 37 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
- 626 Refinitiv Data Platform Libraries
- 5 LSEG Due Diligence
- 1 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
- 26 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 191 TREP Infrastructure
- 228 TRKD
- 915 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 84 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛