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.
Best Answer
-
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.
0
Answers
-
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.
0 -
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
- http://localhost:9000/ping?all output:
{"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"}]}
- http://localhost:9060/api/status output:
{"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
0 -
0
-
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?
0 -
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.
0 -
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.
0 -
Hi @RL
I just submitted case no. 09734424 on your behalf.
0
Categories
- All Categories
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 684 Datastream
- 1.4K DSS
- 613 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 248 ETA
- 552 WebSocket API
- 37 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 630 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 26 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 191 TREP Infrastructure
- 228 TRKD
- 915 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 86 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛