My connection setup is the following:
Refinitiv desktop version 4.0.53 (connection mode: internet)
Python version 3.7.10
eikon version 1.1.6.post3
I have checked that the localhost:9060/api/status returns:
{"statusCode":"ST_PROXY_READY","version":"2.8.0"}
and localhost:9000/ping?all returns:
{"port":9000,"mode":"eikon4","pid":16440,"hasSecure":true,"startedTime":"Wed May 26 2021 14:11:02 GMT+0300 (FLE Daylight Time)","subApps":[{"path":"/heap"},{"path":"/ping"},{"path":"/sxs","data":{"hasSecure":true,"sxsApps":{}}},{"path":"/api"},{"path":"/sxs/v1/services/messenger"}]}
When I run the following python code:
import requests
import eikon as ek
r = requests.get(url="http://localhost:9060/api/status")
print("STATUS:\n", r.text)
body = {
"AppKey": appkey,
"AppScope": "rapi",
"ApiVersion": "1",
"LibraryName": "Eikon Python Library",
"LibraryVersion": ek.__version__
}
r = requests.post(url="http://localhost:9060/api/handshake",
headers={"Content-Type": "application/json"},
json=body)
print("HANDSHAKE:\n", r.text)
I get:
STATUS: {"statusCode":"ST_PROXY_READY","version":"2.8.0"} HANDSHAKE: {"code":500,"message":"connect ECONNREFUSED 159.220.1.19:443","statusMessage":"Internal Server Error"}
If I try to run simple get_data(), I will get an
Error code 503 | Server Error
Network error (tcp_error)
Operation timed out
I'm working behind a corporate proxy, could you please advice on this?