got a 400 error when running set_app_key in jupyterlab instead of codebook

I got a 400 error when running set_app_key in jupyterlab instead of codebook.


The key works well in codebook.


2022-12-12 13:27:20,774 P[19800] [MainThread 19804] Error on handshake url http://127.0.0.1:9060/api/handshake : EikonError(1, 'Status code 400: App key is incorrect')
2022-12-12 13:27:20,775 P[19800] [MainThread 19804] Error on handshake url http://127.0.0.1:9060/api/handshake : EikonError(1, 'Status code 400: App key is incorrect')
2022-12-12 13:27:20,776 P[19800] [MainThread 19804] Port number was not identified, cannot send any request




Tagged:

Best Answer

  • raksina.samasiri
    Answer ✓

    Please be informed that the resolution posted in the support ticket is as the below

    Even though the HTTP request is directed to the localhost, your HTTP proxy intercepts it. After intercepting the request, the proxy returns the request to your machine, but now to Eikon API Proxy, the request appears as coming from a remote machine (as it comes from the IP address of the HTTP proxy). Eikon API Proxy rejects the request with the error message that you've seen because it only allows requests coming from the same machine.

    The client need to configure proxy settings to allow HTTP requests directed to the localhost to not be intercepted by your HTTP proxy

Answers