HTTP request response 503: Cant access Eikon data API through python official library
Hi,
I've been trying to reach support for this issue by phone and they ask me to upload a thread here. I'm behind a corporate proxy and unable to reach the eikon API through the python library, although I'm able to check the status of the API through a web browser or Postman. I've been following the https://developers.refinitiv.com/en/article-catalog/article/eikon-data-api-python-troubleshooting-refinitiv
Eikon Desktop is up and running with online data in the same machine that python and eikon library is installed. The proxy is configured in the machine with the HTTP_PROXY and HTTPS_PROXY environment variables. The logs showed the API running, here is a screenshot of it:
Using Postman to query http://127.0.0.1:9060/api/status works as expected, receiving a statusCode "ST_PROXY_READY" and the version (2.8.0), the same is obtained through a normal get with a browser.
Despite all that, Python lib does not work. I imagine it's due to some kind of configuration missing for the lib regarding the proxy/bypassing, here is a screenshot of the 503 error:
I wanted to upload more images but the thread only allows me to upload 2, hope that it's clear enough.
Thanks in advance
Best Answer
-
It could be 159.220.54.3.
C:\Users\U8009686>nslookup
Default Server: stcp-tenidns01vrrp.ten.thomsonreuters.com
Address: 10.29.128.9
> amers2.apps.cp.thomsonreuters.com
Server: stcp-tenidns01vrrp.ten.thomsonreuters.com
Address: 10.29.128.9
Non-authoritative answer:
Name: hdcp-erpcprp-sdk-sancert1-www.cp.thomsonreuters.com
Address: 159.220.54.3
Aliases: amers2.apps.cp.thomsonreuters.comHowever, it is better to contact the Eikon support team to confirm it.
From my finding, "getaddrinfo ENOTFOUND" may relate to the permission of your Eikon user.
I have submitted a new case (10129377) under your name to the Eikon support team to verify the settings. The support team will contact you regarding this issue.
1
Answers
-
Hi @roliveri
I think that you may have proxy / firewall / network rule which blocked the communication between Eikon Data API and Eikon API Proxy.
Please check this with your IT team.
0 -
It looks like Python still uses the HTTP proxy when connecting to the localhost (127.0.0.1). You may try to use the NO_PROXY environment variable for the localhost.
1 -
I was thinking of trying this today (didn't have time yesterday) I'll try and report back!0
-
Okay, after setting the NO_PROXY to 127.0.0.1, I could reach the API through python so that was solved. But another 500 error just pop up after the first status /api/status request:
I don't have access to amers1.apps.cp.thomsonreuters.com through a web browser, neither on the machine with this problem nor in another where I could use the eikon library without problem (outside of the corporate proxy).
Trying to do the API handshake results in a 404 either from postman with the app id set in the headers or from a browser
Thanks for your first reply
0 -
I know it's something related to the corporate proxy, but I have a connection with the eikon desktop app to online data so the configuration should be on the python/eikon lib side of things. If I could spot what the cause is I could ask for a specific solution to IT.0
-
It looks like to be a network issue. To test the http://127.0.0.1:9060/api/handshake endpoint, you need to use the HTTP POST method. The payload contains the following JSON.
{
"AppKey": "<app key>",
"AppScope": "rapi",
"ApiVersion": "1",
"LibraryName": "Eikon Python Library",
"LibraryVersion": "1.1.8"
}0 -
hi , I am following @roliveri . same org. Could you please provide the IP for :
amers2.apps.cp.thomsonreuters.com ? Our IT team is asking for that . Thanks0
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 中文论坛