ENOTFOUND emea1.apps.cp.thomsonreuters.com error when trying to fetch data using python eikon API

Dear colleagues,
I've been trying to use Eikon Data API but can't get it to work but without success. I hope you can help me out. The issue is most likely related to our corporate proxy server.
Here is the stacktrace which i got from setting the log level accordingly:
2021-06-29 23:29:52,310 P[4852] [MainThread 12460] HTTP request response 500: {"code":500,"message":"getaddrinfo ENOTFOUND emea1.apps.cp.thomsonreuters.com emea1.apps.cp.thomsonreuters.com:443","statusMessage":"Internal Server Error"}
2021-06-29 23:29:52,310 P[4852] [MainThread 12460] Response : 500 - {"code":500,"message":"getaddrinfo ENOTFOUND emea1.apps.cp.thomsonreuters.com emea1.apps.cp.thomsonreuters.com:443","statusMessage":"Internal Server Error"}
2021-06-29 23:29:52,311 P[4852] [MainThread 12460] Response 500 on handshake port 9060 : {"code":500,"message":"getaddrinfo ENOTFOUND emea1.apps.cp.thomsonreuters.com emea1.apps.cp.thomsonreuters.com:443","statusMessage":"Internal Server Error"}
It seems like the API Proxy process can't resolve the hostname. Is that process not correcly using the corporate proxy server which I set in the environment variables HTTP_PROXY and HTTPS_PROXY?
I tried searching the forum as well but I couldn't find a suitable solution.
Thank you very much for your help.
Best regards
Stefan
Best Answer
-
I am sorry, I think I misunderstood your question.
Eikon Data API(Python code) connects to Eikon API Proxy.
You can set Python program to use proxy with the sample code I provided.
However, this would not affect Eikon API Proxy process.
I submitted case no. 10047299 on your behalf to helpdesk.
They will contact you shortly.
0
Answers
-
I was able to redirect Eikon Data API request via Fiddler4(acting as proxy) by adding this code:
import os
os.environ['HTTP_PROXY']="http://<ip>:<port>"
os.environ['HTTPS_PROXY']="http://<ip>:<port>"Assuming that your corporate proxy is running on <ip> and <port> and does not require authentication.
0 -
Thank you for your fast response
If I understand your answer correctly, you were just using Fiddler to simulate my scenario with a corporate proxy and your advice is to set the environment variables. Please correct me if I am wrong.
0 -
I have been trying to upload screenshots, but I always get an error message....
Therefore I provide you links to the pictures:Imgur: The magic of the Internet
- It includes a screenshot that shows that I have already set the environment variables
- A screenshot from the APIProxy logs of Eikon that shows that the environment variable is also read
- And a screenshot of me trying to connect via python requests module which uses the proxy server correctly to show that the proxy server is working correctly.
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
- 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 中文论坛