AWS Eikon-python issue

Hello,

I use AWS and got the error message when run the python code:

import eikon as ek

print (ek.__version__)

ek.set_app_key("73c")


Error message:

2024-04-23 15:26:44,018 P[2056] [MainThread 20712] Error on handshake url http://127.0.0.1:9060/api/handshake : EikonError(1, 'Status code 400: App key is incorrect')

1.1.18

2024-04-23 15:26:44,022 P[2056] [MainThread 20712] Error on handshake url http://127.0.0.1:9060/api/handshake : EikonError(1, 'Status code 400: App key is incorrect')

2024-04-23 15:26:44,023 P[2056] [MainThread 20712] Port number was not identified, cannot send any request


Eikon proxy was checked:

{

"statusCode": "ST_PROXY_READY",

"version": "3.3.11-eikon4"

}

Could unybody help to figure out in the issue?




Best Answer

Answers

  • @alexander.shkurin01

    Thank you for reaching out to us.

    The error(Status code 400: App key is incorrect) indicates tha the application key is incorrect. You need to use the App Key Generator tool to create application keys.

    For more information, please refer to the Eikon Data API Quick Start Guide.

    You may need to enable logging in the API to verify what the problem is.

    import eikon as ek
    ek.set_log_level(1)

    print (ek.__version__)
    ek.set_app_key("<app key>")



  • Hello @alexander.shkurin01

    Do you want to run the Eikon Data API application on the AWS Cloud?

    If so, please be informed that the Workspace/Eikon desktop application integrates a Data API proxy that acts as an interface between the Eikon Data API Python library and the Workspace Platform. For this reason, the Workspace/Eikon application must be running in the same machine when you use the Eikon Data API Python library. I do not think you can run the Workspace/Eikon application on the cloud.


  • Thanks for the answer. But the key works in other environments.

  • Hello @wasin.w


    Workspace is installed in AWS and is working. Moreover, there are no problems with realtime data. I have a suspicion that if the Workspace works through a proxy, then a conflict arises. I tried to add AWS proxy data to the workspace proxy, but it didn't help.



    localhost:9060/api/status

    {

    "statusCode": "ST_PROXY_READY",

    "version": "3.3.11-eikon4"

    }

  • @alexander.shkurin01

    Can you enable logging in the API to verify what the problem is?

    import eikon as ek
    ek.set_log_level(1)

    print (ek.__version__)
    ek.set_app_key("<app key>")
  • @Jirapongse

    print(rd.__version__)

    Status code 400: Bad request on handshake url http://localhost:9060/api/handshake : <HEAD><TITLE>Request on loopback from external IP</TITLE></HEAD>

    <BODY BGCOLOR="white" FGCOLOR="black"><H1>Request on loopback from external IP</H1><HR>

    <FONT FACE="Helvetica,Arial"><B>

    Description: Your request is prohibited because the request is on loopback from external IP.</B></FONT>

    <HR>

    <!-- default "Request on loopback from external IP" response (400) -->

    </BODY>