Error on Handshake with Eikon API: Status Code 400 - App Key is Incorrect

I'm encountering an issue while trying to set up the Eikon API on my local machine using the web version of Eikon Codebook. I'm using the following code:


```python

import eikon as ek

ek.set_app_key('My App Key')

1691690465238.png
1691692213985.png

1691690374927.png

However, I'm receiving the following error:

ERROR:pyeikon:Error on handshake url http://localhost:9000/api/handshake : EikonError(1, 'Status code 400: App key is incorrect')

ERROR:pyeikon:Error on handshake url http://localhost:9000/api/handshake : EikonError(1, 'Status code 400: App key is incorrect')

ERROR:pyeikon:Port number was not identified, cannot send any request

I resorted to using the web version of Eikon Codebook because I encountered the same issue on my local machine while programming. I used the web version to rule out any problems specific to my computer.

Has anyone encountered a similar issue, or does anyone know how to resolve it

Thanks

Best Answer

Answers

  • I just created a new App Key, and now everything is working normally. I don't know why the old App Key became invalid. Does anyone know how to delete the old App Key?

  • Hi @lou45 ,

    I'm sorry for the inconveniences that you have faced.

    The app key can be disabled/enabled in the Status column. However, I cannot find how to delete the old app key as well so I just disabled it instead.

    1691721915572.png

  • Thank you for the answer. I'm currently using the same method, but I'm concerned that it might lead to a bunch of App Keys that are hard to manage. Additionally, do you have any thoughts on App Key expiration?