Problem with eikon API
We are experiencing the issue on Eikon API after restarting PC.
Version: Desktop 4.0.56
>>> import eikon as ek
>>> print(ek.__version__)
1.1.14
http://localhost:9000/api/status
Cannot GET /api/status
http://localhost:9000/api/data/v1
Cannot GET /api/data/v1
http://localhost:9000/ping?all
{"port":9000,"mode":"eikon4","pid":11644,"hasSecure":true,"startedTime":"Fri Feb 11 2022 12:13:42 GMT+0100 (Paris, Madrid)","subApps":[{"path":"/heap"},{"path":"/ping"},{"path":"/sxs","data":{"hasSecure":true,"sxsApps":{}}},{"path":"/sxs/v1/services/messenger"}]}
http://127.0.0.1:9000/api/handshake.
Cannot GET /api/handshake.
>>> import eikon as ek
>>> ek.set_log_level(1)
>>> ek.set_app_key('apikey')
2022-02-11 13:08:56,465 P[13028] [MainThread 7332] Reset a Desktop session with new app_key
2022-02-11 13:08:56,465 P[13028] [MainThread 7332] Unlock login_event for streaming session 0 due to stop streaming call
2022-02-11 13:08:56,480 P[13028] [MainThread 7332] Send GET request to http://127.0.0.1:9000/api/status to detect API Proxy...
2022-02-11 13:08:56,480 P[13028] [MainThread 7332] Request to http://127.0.0.1:9000/api/status
headers = {'x-tr-applicationid': 'apikey'}
params = None
2022-02-11 13:08:56,496 P[13028] [MainThread 7332] HTTP request response 404: <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot GET /api/status</pre>
</body>
</html>
2022-02-11 13:08:56,496 P[13028] [MainThread 7332] Checking proxy url http://127.0.0.1:9000/api/status response : 404 - <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot GET /api/status</pre>
</body>
</html>
2022-02-11 13:08:56,512 P[13028] [MainThread 7332] Port 9000 was retrieved from .portInUse file
2022-02-11 13:08:56,512 P[13028] [MainThread 7332] Try to handshake on url http://127.0.0.1:9000/api/handshake...
2022-02-11 13:08:56,512 P[13028] [MainThread 7332] Request to http://127.0.0.1:9000/api/handshake
headers = {'Content-Type': 'application/json', 'x-tr-applicationid': 'apikey'}
params = None
2022-02-11 13:08:56,512 P[13028] [MainThread 7332] HTTP request response 404: <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot POST /api/handshake</pre>
</body>
</html>
2022-02-11 13:08:56,512 P[13028] [MainThread 7332] Response : 404 - <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot POST /api/handshake</pre>
</body>
</html>
2022-02-11 13:08:56,512 P[13028] [MainThread 7332] Response 404 on handshake url http://127.0.0.1:9000/api/handshake : <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot POST /api/handshake</pre>
</body>
</html>
2022-02-11 13:08:56,512 P[13028] [MainThread 7332] Application ID: apikey
2022-02-11 13:08:56,512 P[13028] [MainThread 7332] Init a Desktop session with new app_key
>>>
Can somebody help to identify and resolve API connection issues ?
Thank you.
Best Answer
-
Hi @Magouloub ,
According to "Cannot GET /api/status " response on request to http://127.0.0.1:9000/api/status, it seems that API Proxy isn't running in your Eikon.
This could be due to your Eikon Variant model.
You can follow this thread for information on availability of Eikon Data APIs in various Eikon variants.The second possibility (if it worked before) is coming from a failure of API Proxy. Do you reproduce the issue if you restart Eikon ?
Could you check http://127.0.0.1:9000/api/status result in a browser ?
It should be something like :{"statusCode":"ST_PROXY_READY","version":"3.1.0"}
0
Answers
-
Hi,
I have the same error after restarting PC and Eikon:
http://localhost:9000/api/status
Cannot GET /api/status
I tried to change 9000 to 9060 and restart eikon but nothing changed
C:\Users\LOGIN\AppData\Roaming\Thomson Reuters\Eikon API Proxy\.portInUse
0 -
Did it work recently ?
This seems to be due to your Eikon Variant model.
According to this thread, the Python feature should be available in Eikon Premium only. Please contact your account manager to discuss options that meet your needs.0
Categories
- All Categories
- 6 AHS
- 39 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 60 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛