Error on handshake url http://127.0.0.1:9060/api/handshake

Eikon is working fine.
Python API stopped to work yesterday with the following errors:
C:\Users\backend>python
Python 3.11.3 (tags/v3.11.3:f3909b8, Apr 4 2023, 23:34:50) [MSC v.1934 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import eikon as ek
>>> ek.set_log_level(1) #This is to enable log deta
>>> ek.set_app_key("***")
2024-03-01 13:06:36,286 P[11652] [MainThread 32844] Send GET request to http://127.0.0.1:9060/api/status to detect API Proxy...
2024-03-01 13:06:36,286 P[11652] [MainThread 32844] Request to http://127.0.0.1:9060/api/status
headers = {'x-tr-applicationid': '***'}
params = None
2024-03-01 13:06:36,372 P[11652] [MainThread 32844] Send request with headers [(b'Host', b'127.0.0.1:9060'), (b'Accept-Encoding', b'gzip, deflate'), (b'Connection', b'keep-alive'), (b'User-Agent', b'python-httpx/0.24.0'), (b'Accept', b'application/json'), (b'x-tr-applicationid', b'***')] and cookies None
2024-03-01 13:06:36,374 P[11652] [MainThread 32844] HTTP request response 200: {"statusCode":"ST_PROXY_READY","version":"3.9.0-eikon4"}
2024-03-01 13:06:36,375 P[11652] [MainThread 32844] Checking proxy url http://127.0.0.1:9060/api/status response : 200 - {"statusCode":"ST_PROXY_READY","version":"3.9.0-eikon4"}
2024-03-01 13:06:36,375 P[11652] [MainThread 32844] Port 9060 was retrieved from .portInUse file
2024-03-01 13:06:36,376 P[11652] [MainThread 32844] Try to handshake on url http://127.0.0.1:9060/api/handshake...
2024-03-01 13:06:36,377 P[11652] [MainThread 32844] Request to http://127.0.0.1:9060/api/handshake
headers = {'Content-Type': 'application/json', 'x-tr-applicationid': '***'}
params = None
2024-03-01 13:06:51,379 P[11652] [MainThread 32844] TimeoutException on HTTP request: ReadTimeout('')
2024-03-01 13:06:51,380 P[11652] [MainThread 32844] Error on handshake url http://127.0.0.1:9060/api/handshake : ReadTimeout('')
2024-03-01 13:06:51,381 P[11652] [MainThread 32844] Error on handshake url http://127.0.0.1:9060/api/handshake : ReadTimeout('')
2024-03-01 13:06:51,381 P[11652] [MainThread 32844] Port number was not identified, cannot send any request
2024-03-01 13:06:51,382 P[11652] [MainThread 32844] Received notification for closed streaming session 0
2024-03-01 13:06:51,383 P[11652] [MainThread 32844] Init a Desktop session with new app_key
I went through https://developers.lseg.com/en/article-catalog/article/eikon-data-api-python-troubleshooting-refinitiv
Logs:
[2024-03-01 17:31:39.153|1|api-svc|1|INFO] Start server...
[2024-03-01 17:31:39.162|1|api-svc|2|DEBUG] onStarted: 9000
[2024-03-01 17:31:39.163|1|api-svc|1|INFO] Listening to port=9000
[2024-03-01 17:31:39.165|1|data-api|1|INFO] API Proxy is available on port 9060. Start redirecting /api/* requests
http://localhost:9000/ping?all:
{"port":9000,"mode":"eikon4","pid":24104,"hasSecure":true,"startedTime":"Thu Feb 29 2024 21:05:26 GMT-0500 (Eastern Standard Time)","subApps":[{"path":"/heap"},{"path":"/ping"},{"path":"/sxs","data":{"hasSecure":true,"sxsApps":{}}},{"path":"/api"},{"path":"/sxs/v1/services/messenger"}]}
http://localhost:9060/api/status
{"statusCode":"ST_PROXY_READY","version":"3.9.0-eikon4"}
Eikon: 4.0.6412
eikon python module: 1.1.16
What can I do next?
Best Answer
-
I encountered the same error. After a call from LSEG support, the solution was to generate a new API Key and use that instead of the old one.
0
Answers
-
It is the same issue : https://community.developers.refinitiv.com/questions/114616/eikon-data-api-in-python-not-working-since-the-las.html
But we are using eikon python module instead of refinitiv
0 -
Hi @Tethys,
Everything you are trying is correct. I also went through a number of tests against Eikon, using the eikon python module, the Data Library for Python as well as the Data Library for .Net and in all cases, the handshake is timing out. However, everything works as expected when testing against Workspace. This may be an issue with the API Proxy within Eikon. I'm following up with the team to verify.
I'm using the following:
0 -
0
-
Hi,
For those who are still running into issues handshaking with Eikon, can you please confirm the version of your REFINITIVHOLDINGS.EIKON.DATAAPIPROXY. The developers are asking for API Proxy logs and suggested to follow this guide: https://developers.lseg.com/en/article-catalog/article/eikon-data-api-python-troubleshooting-refinitiv
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 688 Datastream
- 1.4K DSS
- 621 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
- 254 ETA
- 557 WebSocket API
- 38 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
- 276 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
- 664 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
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 193 TREP Infrastructure
- 229 TRKD
- 917 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛