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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
36 0 1 1

Eikon API HTTP 500 Internal Server Error

Hi,

I tried to set my app id in python:

ek.set_log_level(1)

ek.set_app_key(myAppId)

And received the following error:

DEBUG [2021-03-17 15:29:50] httpx._client - HTTP Request: POST http://127.0.0.1:9060/api/handshake "HTTP/1.1 500 Internal Server Error"

2021-03-17 15:29:50,954 P[34584] [MainThread 27808] HTTP Request: POST http://127.0.0.1:9060/api/handshake "HTTP/1.1 500 Internal Server Error"

TRACE [2021-03-17 15:29:50] httpcore._async.http11 - receive_event=Data(<79 bytes>)

2021-03-17 15:29:50,957 P[34584] [MainThread 27808] receive_event=Data(<79 bytes>)

TRACE [2021-03-17 15:29:50] httpcore._async.http11 - receive_event=EndOfMessage(headers=[])

2021-03-17 15:29:50,959 P[34584] [MainThread 27808] receive_event=EndOfMessage(headers=[])

TRACE [2021-03-17 15:29:50] httpcore._async.http11 - response_closed our_state=DONE their_state=DONE

2021-03-17 15:29:50,960 P[34584] [MainThread 27808] response_closed our_state=DONE their_state=DONE

May I know how I can fix it? Thanks.

eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpython
icon clock
10 |1500

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

Upvote
Accepted
36 0 1 1

Thanks @chavalit.jintamalit for raising the case. Technical support group has resolved the issue by making some adjustments to their backend.

In case anyone else wonders what the issue and solution was:

Background issue

Some clients have changed their authenticated HTTP Proxies or Self signed certificates setup. This resulted in blocking the Eikon API from connecting to our backend hosts. We have enabled a feature in Eikon API called FDM (File Download Manager) as a work-a-round on the affected users/site. We then plan to redesign the Eikon API in Q2 2021 to better work with this client Proxy change. As we view FDM as a short term fix and not a long term solution.

Once the new Eikon API Is release, we will disable FDM by a back end configuration in the same way it was enabled.

icon clock
10 |1500

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

Upvotes
18k 21 12 20

Hi @RL

I would suggest that you restart your machine and Eikon Desktop application.

If it still does not work, please verify if the API Proxy is running properly by following this guide.

icon clock
10 |1500

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

Upvotes
36 0 1 1

Hi @chavalit.jintamalit


I have restarted both my machine and Eikon Desktop application.

I've also followed the guide and still encounter the same issue. My output is as follows:

  • Eikon Desktop version: Desktop 4.0.53 (4.0.53072)
  • API version: 1.1.8
  • Log has been enabled
  • SxS output (I don't see SIDEBYSIDE)

[2021-03-18 04:27:57.964|1|api-svc|1|INFO] PO: APIPROXY

[2021-03-18 04:27:57.966|1|api-svc|3|DEBUG] create APIPROXY

[2021-03-18 04:27:57.968|1|api-svc|2|DEBUG] [bus] channel=/desktopsxs name=sxs:GetSetting callId=19 data={"settingName":"RDE_PRODUCT_MSIPRODUCTVERSION","provider":"Configuration","isVersioning":false,"action":"GetSetting"}

[2021-03-18 04:27:57.975|1|api-svc|2|DEBUG] [bus] onCallback name=sxs:GetSetting callId=19 data~={"callId":19,"value":"4.0.53072","action":"ReturnCall"}

[2021-03-18 04:27:57.998|1|data-api|1|INFO] Request API Proxy port number using channel=/api-proxy/port/request

[2021-03-18 04:27:58.004|1|api-svc|1|INFO] Start server...

[2021-03-18 04:27:58.021|1|api-svc|2|DEBUG] onStarted: 9000

[2021-03-18 04:27:58.024|1|api-svc|1|INFO] Listening to port=9000

[2021-03-18 04:27:58.030|1|data-api|1|INFO] API Proxy is available on port 9060. Start redirecting /api/* requests

{"port":9000,"mode":"eikon4","pid":12296,"hasSecure":true,"startedTime":"Thu Mar 18 2021 00:19:06 GMT+0800 (Malay Peninsula Standard Time)","subApps":[{"path":"/heap"},{"path":"/ping"},{"path":"/api"}]}
{"statusCode":"ST_PROXY_READY","version":"2.6.4"}
  • Running set_app_key returns:

DEBUG [2021-03-18 13:53:15] httpx._client - HTTP Request: POST http://127.0.0.1:9060/api/handshake "HTTP/1.1 500 Internal Server Error"

2021-03-18 13:53:15,670 P[25080] [MainThread 14236] HTTP Request: POST http://127.0.0.1:9060/api/handshake "HTTP/1.1 500 Internal Server Error"

TRACE [2021-03-18 13:53:15] httpcore._async.http11 - receive_event=Data(<79 bytes>)

2021-03-18 13:53:15,672 P[25080] [MainThread 14236] receive_event=Data(<79 bytes>)

TRACE [2021-03-18 13:53:15] httpcore._async.http11 - receive_event=EndOfMessage(headers=[])

2021-03-18 13:53:15,675 P[25080] [MainThread 14236] receive_event=EndOfMessage(headers=[])

TRACE [2021-03-18 13:53:15] httpcore._async.http11 - response_closed our_state=DONE their_state=DONE

2021-03-18 13:53:15,677 P[25080] [MainThread 14236] response_closed our_state=DONE their_state=DONE

2021-03-18 13:53:15,680 P[25080] [MainThread 14236] HTTP request response 500: {"code":500,"message":"socket hang up","statusMessage":"Internal Server Error"}

2021-03-18 13:53:15,682 P[25080] [MainThread 14236] Response : 500 - {"code":500,"message":"socket hang up","statusMessage":"Internal Server Error"}

2021-03-18 13:53:15,684 P[25080] [MainThread 14236] Response 500 on handshake port 9060 : {"code":500,"message":"socket hang up","statusMessage":"Internal Server Error"}

2021-03-18 13:53:15,685 P[25080] [MainThread 14236] Application ID: myAppId

2021-03-18 13:53:15,687 P[25080] [MainThread 14236] Init a Desktop session with new app_key

2021-03-18 13:53:15,689 P[25080] [MainThread 14236] Port 9060 on local proxy was detected

icon clock
10 |1500

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

Upvotes
18k 21 12 20

Hi @RL

Any change you have firewall block the connection?

Or are you on VPN?

icon clock
10 |1500

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

Upvotes
36 0 1 1

Hi @chavalit.jintamalit

I'm not using a VPN but my company would have a firewall. May I know what link I should take note of so that I can ask my IT dept to check?

icon clock
10 |1500

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

Upvotes
18k 21 12 20

Hi @RL

I think it may be related to the dependencies or your Python environment.


Please run this command to upgrade the Eikon Data API to 1.1.9

pip install eikon --upgrade

I am on Python 3.7.4 32bit.

Please check your dependencies to be the same as my environment.


If you have the same dependencies with me and if it still does not work.

I will submit a ticket to the Technical Support group on your behalf.



ahs2.jpg (406.1 KiB)
icon clock
10 |1500

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

Upvotes
36 0 1 1

Hi @chavalit.jintamalit

I've changed all my package versions (except numpy and zope.interface, which are newer than what you have) to the exact ones in the screenshot. The Eikon Data API however still does not work.

Could you please submit a ticket to Technical Support group on my behalf? Thanks.

icon clock
10 |1500

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

Upvotes
18k 21 12 20

Hi @RL

I just submitted case no. 09734424 on your behalf.

icon clock
10 |1500

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

Click below to post an Idea Post Idea