Keep getting EikonError: Error code 401 | Client Error: Unauthorized - Eikon API Proxy requires auth

Hello,

For some reasons, I keep getting the following error when using the python API:

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

I simply connect doing the following but then receive the error when using ek.get_data

import pandas as pd

import eikon as ek

ek.set_app_key('XXXXXhidden for postXXXXXX')

The eikon terminal and the excel addin work fine. I checked and rechecked my key on the app key generator and it is the correct one.

Could someone help me on this please? Fyi I use windows and python 3.6 with spyder. When restarting the machine it disappears.

Many thanks.

Best Answer

Answers

  • Thank you Zhenya. That was indeed the issue. Why would this happens? Everthing works fine but the python api gets somehow disconnected? Many thanks

  • I face the same issue. The restart worked but the next day I get the same error