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.
0
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.
0 -
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 -
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
- 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
- 685 Datastream
- 1.4K DSS
- 615 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
- 252 ETA
- 556 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
- 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
- 652 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
- 228 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 中文论坛