EIKON API not working
Hi,
I'm not able to use the eikon api.
Tried the trouble shoot link: Eikon Data API(Python) Troubleshooting | Refinitiv | Devportal (lseg.com)
and noticed that my Log doesn't have any proxy information. However, the article doesn't tell you what to do.
Here is the log I get when trying to connect to the API:
2024-05-14 16:58:32,254 P[44336] [MainThread 43016] Reset a Desktop session with new app_key
2024-05-14 16:58:32,256 P[44336] [MainThread 43016] Send GET request to http://127.0.0.1:9060/api/status to detect API Proxy...
2024-05-14 16:58:32,257 P[44336] [MainThread 43016] Request to http://127.0.0.1:9060/api/status
headers = {'x-tr-applicationid': 'xxxxxxxxxxxxxxxa5e9da6e44f5bc5481b5451f'}
params = None
2024-05-14 16:58:32,258 P[44336] [MainThread 43016] HTTP request failed: AssertionError()
2024-05-14 16:58:32,258 P[44336] [MainThread 43016] Error on checking proxy url http://127.0.0.1:9060/api/status : AssertionError()
2024-05-14 16:58:32,259 P[44336] [MainThread 43016] Retrieved port 9060 value from .portIntUse isn't valid.
2024-05-14 16:58:32,260 P[44336] [MainThread 43016] Warning: file .portInUse was not found. Try to fallback to default port number.
2024-05-14 16:58:32,260 P[44336] [MainThread 43016] Try defaulting to port 9000...
2024-05-14 16:58:32,261 P[44336] [MainThread 43016] Send GET request to http://127.0.0.1:9000/api/status to detect API Proxy...
2024-05-14 16:58:32,262 P[44336] [MainThread 43016] Request to http://127.0.0.1:9000/api/status
headers = {'x-tr-applicationid': 'xxxxxxxxxxxxxxxxxxxxda6e44f5bc5481b5451f'}
params = None
2024-05-14 16:58:32,262 P[44336] [MainThread 43016] HTTP request failed: AssertionError()
2024-05-14 16:58:32,263 P[44336] [MainThread 43016] Error on checking proxy url http://127.0.0.1:9000/api/status : AssertionError()
2024-05-14 16:58:32,263 P[44336] [MainThread 43016] Default proxy port #9000 failed
2024-05-14 16:58:32,264 P[44336] [MainThread 43016] Try defaulting to port 9060...
2024-05-14 16:58:32,264 P[44336] [MainThread 43016] Send GET request to http://127.0.0.1:9060/api/status to detect API Proxy...
2024-05-14 16:58:32,265 P[44336] [MainThread 43016] Request to http://127.0.0.1:9060/api/status
headers = {'x-tr-applicationid': 'f8f72db20a5b4e26a5e9da6e44f5bc5481b5451f'}
params = None
2024-05-14 16:58:32,266 P[44336] [MainThread 43016] HTTP request failed: AssertionError()
2024-05-14 16:58:32,266 P[44336] [MainThread 43016] Error on checking proxy url http://127.0.0.1:9060/api/status : AssertionError()
2024-05-14 16:58:32,267 P[44336] [MainThread 43016] Default proxy port #9060 failed
2024-05-14 16:58:32,268 P[44336] [MainThread 43016] Error: no proxy address identified.
Check if Eikon Desktop or Eikon API Proxy is running.
2024-05-14 16:58:32,269 P[44336] [MainThread 43016] Try to handshake on url http://127.0.0.1:None/api/handshake...
2024-05-14 16:58:32,269 P[44336] [MainThread 43016] Request to http://127.0.0.1:None/api/handshake
headers = {'Content-Type': 'application/json', 'x-tr-applicationid': 'f8f72db20a5b4e26a5e9da6e44f5bc5481b5451f'}
params = None
2024-05-14 16:58:32,270 P[44336] [MainThread 43016] HTTP request failed: InvalidURL("Invalid port: 'None'")
2024-05-14 16:58:32,271 P[44336] [MainThread 43016] Error on handshake url http://127.0.0.1:None/api/handshake : InvalidURL("Invalid port: 'None'")
2024-05-14 16:58:32,271 P[44336] [MainThread 43016] Error on handshake url http://127.0.0.1:None/api/handshake : InvalidURL("Invalid port: 'None'")
2024-05-14 16:58:32,272 P[44336] [MainThread 43016] Port number was not identified, cannot send any request
2024-05-14 16:58:32,272 P[44336] [MainThread 43016] Received notification for closed streaming session 0
2024-05-14 16:58:32,273 P[44336] [MainThread 43016] Received notification for closed streaming session 0
2024-05-14 16:58:32,273 P[44336] [MainThread 43016] Init a Desktop session with new app_key
2024-05-14 16:58:32,274 P[44336] [MainThread 43016] entity: TimeSeries
2024-05-14 16:58:32,274 P[44336] [MainThread 43016] payload: {'rics': ['EUR=', 'CAD=', 'GBP='], 'fields': ['CLOSE', 'TIMESTAMP'], 'interval': 'daily', 'startdate': '2020-01-01T00:00:00', 'enddate': '2020-05-18T00:00:00'}
2024-05-14 16:58:32,275 P[44336] [MainThread 43016] Request:{'Entity': {'E': 'TimeSeries', 'W': {'rics': ['EUR=', 'CAD=', 'GBP='], 'fields': ['CLOSE', 'TIMESTAMP'], 'interval': 'daily', 'startdate': '2020-01-01T00:00:00', 'enddate': '2020-05-18T00:00:00'}}}
2024-05-14 16:58:32,275 P[44336] [MainThread 43016] Request to http://127.0.0.1:None/api/v1/data
headers = {'Content-Type': 'application/json', 'x-tr-applicationid': 'xxxxxxxxxxxa5e9da6e44f5bc5481b5451f'}
params = None
2024-05-14 16:58:32,276 P[44336] [MainThread 43016] HTTP request failed: InvalidURL("Invalid port: 'None'")
2024-05-14 16:58:32,277 P[44336] [MainThread 43016] HTTP request failed: Invalid port: 'None'
Hope someone can help.
regards,
Luiz
Best Answer
-
Hi @lflu ,
Eikon Data API supports a proxy setting via the Windows HTTP_PROXY variable. For example:
import os
os.environ['HTTP_PROXY']="http://127.0.0.1:8080"It looks like it requires a proxy to connect to the localhost. I assumed that a web browser also uses a proxy to connect to http://localhost:9060/api/status.
You may verify a proxy setting used by a web browser. It may have a security application that blocks a connection to the localhost.
0
Answers
-
Hello @lflu
According to the given log messages, it seems that the Workspace/Eikon desktop application cannot start the API proxy on your machine.
I highly recommend you contact the Workspace support team directly to help you with Workspace desktop application issue. You can submit a support ticket to the team via https://my.refinitiv.com/content/mytr/en/productsupport.html website.
0 -
0
-
Hi,
Thanks for responding.
No, I can't. Getting the below error:
Bad Request - Invalid Hostname
HTTP Error 400. The request hostname is invalid.
But this one works:
http://localhost:9060/api/status
{"statusCode":"ST_PROXY_READY","version":"3.3.11-eikon4"}
0 -
Hi,
Thanks for your reply. I tried to contact Eikon support. I was told to start a thread here and see if a developer could help me.
regards,
Luiz
0
Categories
- All Categories
- 6 AHS
- 37 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
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛