New posts are disabled while we improve the user experience.

You can browse the site, or for urgent issues, raise a query at MyAccount.

question

Upvotes
Accepted
1 0 0 2

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
Accepted
28k 68 18 14

Hello @alexander.shkurin01

It could be something conflict when you install the Workspace application in AWS. I strongly suggest you contact the Workspace support team to help you with this issue. You can contact the team via https://my.refinitiv.com/content/mytr/en/helpandsupport.html website.

workspace.png


workspace.png (13.7 KiB)
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
87.8k 294 53 79

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

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

Upvotes
28k 68 18 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 2

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.