Upgrade from Eikon -> Workspace. Learn about programming differences.

For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
1 0 0 1

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?




eikon-data-apipython#technology#productproxy
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
79.4k 253 52 74

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



icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

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

Jirapongse avatar image Jirapongse alexander.shkurin01

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

Upvotes
24.9k 54 17 14

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.


icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
1 0 0 1

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"

}

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.