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
- 6 AHS
- 39 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
- 60 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛