Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Eikon Data APIs /
avatar image
Question by dmitry.sarin · Feb 27, 2019 at 05:56 AM · authenticationapi proxy

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.

People who like this

0 Show 5
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.

avatar image
REFINITIV
Zhenya Kovalyov ♦♦ · Feb 27, 2019 at 06:29 AM 0
Share

@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)?

avatar image
dmitry.sarin Zhenya Kovalyov ♦♦ · Feb 27, 2019 at 07:02 AM 0
Share

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')

avatar image
REFINITIV
Zhenya Kovalyov ♦♦ dmitry.sarin · Feb 27, 2019 at 07:56 AM 0
Share

@dmitry.sarin could you please restart your Eikon and try again? I had a look at your key, it works fine.

avatar image
niskrev · Sep 30, 2019 at 10:58 AM 0
Share

@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

1 Reply

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by Zhenya Kovalyov · Feb 27, 2019 at 08:45 AM

@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.

Comment
dmitry.sarin

People who like this

1 Show 3 · 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
niskrev · Sep 30, 2019 at 11:41 AM 0
Share

Restarting Eikon didn't work for me. Restarting my pc did though...

avatar image
Tulkkas · Oct 30, 2019 at 07:16 AM 0
Share

Is there anyway to refresh the session in order to avoid restartng the PC or EIKON?

avatar image
REFINITIV
Alex Putkov. ♦♦ Tulkkas · Oct 30, 2019 at 07:02 PM 0
Share

No, there isn't. See this thread for the explanation of the mechanism of the issue.

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 >
10 People are following this question.

Related Questions

Can anybody please provide me sample code for generating keys(1,2,3,4) using C#?

Connect to Eikon Data API without being logged in to reuters

Error code 401 | Client Error: Eikon API Proxy requires authentication.

MissingSchema: Invalid URL 'None': No schema supplied. Perhaps you meant http://None?

Download API Proxy Python for Windows.

  • 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