question

Upvotes
Accepted
1 0 0 1

Error: no proxy address identified for Eikon Data API Python

Hi,

I just installed the Eikon Desktop (4.0.65) on my Windows 11, and is trying to connect through Eikon Data API (1.1.18) for Python (3.11). However, I have encouraged an error saying "Error: no proxy address identified.". The full log with ek.set_log_level(1) is as below:

An error occurred while requesting URL('http://localhost:9000/api/status').
ConnectError('[WinError 10061] No connection could be made because the target machine actively refused it')
An error occurred while requesting URL('http://localhost:9060/api/status').
ConnectError('[WinError 10061] No connection could be made because the target machine actively refused it')
Error: no proxy address identified.
Check if Desktop is running.
An error occurred while requesting URL('http://localhost:9000/api/handshake').
ConnectError('[WinError 10061] No connection could be made because the target machine actively refused it')
Error on handshake url http://localhost:9000/api/handshake : ConnectError('[WinError 10061] No connection could be made because the target machine actively refused it')
<refinitiv.data.session.Definition object at 0x28b4cd66690 {name='workspace'}>
An error occurred while requesting URL('http://localhost:9000/api/status').
ReadTimeout('timed out')
An error occurred while requesting URL('http://localhost:9060/api/status').
ConnectError('[WinError 10061] No connection could be made because the target machine actively refused it')
Error: no proxy address identified.
Check if Desktop is running.
An error occurred while requesting URL('http://localhost:9000/api/handshake').
RemoteProtocolError("illegal status line: bytearray(b'\\xff\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x01\\x7fe\\x01')")
Error on handshake url http://localhost:9000/api/handshake : RemoteProtocolError("illegal status line: bytearray(b'\\xff\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x01\\x7fe\\x01')")
<OpenState.Closed: 'Closed'>
2024-09-26 16:31:05,255 P[53560] [MainThread 69032] Reset a Desktop session with new app_key
2024-09-26 16:31:05,256 P[53560] [MainThread 69032] Warning: file .portInUse was not found. Try to fallback to default port number.
2024-09-26 16:31:05,257 P[53560] [MainThread 69032] Try defaulting to port 9000...
2024-09-26 16:31:05,258 P[53560] [MainThread 69032] Send GET request to http://127.0.0.1:9000/api/status to detect API Proxy...
2024-09-26 16:31:05,258 P[53560] [MainThread 69032] Request to http://127.0.0.1:9000/api/status
headers = {'x-tr-applicationid': 'xxx'}
params = None
2024-09-26 16:31:20,273 P[53560] [MainThread 69032] TimeoutException on HTTP request: ReadTimeout('')
2024-09-26 16:31:20,273 P[53560] [MainThread 69032] Error on checking proxy url http://127.0.0.1:9000/api/status : ReadTimeout('')
2024-09-26 16:31:20,274 P[53560] [MainThread 69032] Default proxy port #9000 failed
2024-09-26 16:31:20,275 P[53560] [MainThread 69032] Try defaulting to port 9060...
2024-09-26 16:31:20,275 P[53560] [MainThread 69032] Send GET request to http://127.0.0.1:9060/api/status to detect API Proxy...
2024-09-26 16:31:20,276 P[53560] [MainThread 69032] Request to http://127.0.0.1:9060/api/status
headers = {'x-tr-applicationid': 'xxx'}
params = None
2024-09-26 16:31:22,311 P[53560] [MainThread 69032] HTTP request failed: ConnectError('All connection attempts failed')
2024-09-26 16:31:22,312 P[53560] [MainThread 69032] Error on checking proxy url http://127.0.0.1:9060/api/status : ConnectError('All connection attempts failed')
2024-09-26 16:31:22,313 P[53560] [MainThread 69032] Default proxy port #9060 failed
2024-09-26 16:31:22,313 P[53560] [MainThread 69032] Error: no proxy address identified.
Check if Eikon Desktop or Eikon API Proxy is running.
2024-09-26 16:31:22,314 P[53560] [MainThread 69032] Try to handshake on url http://127.0.0.1:None/api/handshake...
2024-09-26 16:31:22,315 P[53560] [MainThread 69032] Request to http://127.0.0.1:None/api/handshake
headers = {'Content-Type': 'application/json', 'x-tr-applicationid': 'xxx'}
params = None
2024-09-26 16:31:22,315 P[53560] [MainThread 69032] HTTP request failed: InvalidURL("Invalid port: 'None'")
2024-09-26 16:31:22,316 P[53560] [MainThread 69032] Error on handshake url http://127.0.0.1:None/api/handshake : InvalidURL("Invalid port: 'None'")
2024-09-26 16:31:22,317 P[53560] [MainThread 69032] Error on handshake url http://127.0.0.1:None/api/handshake : InvalidURL("Invalid port: 'None'")
2024-09-26 16:31:22,317 P[53560] [MainThread 69032] Port number was not identified, cannot send any request
2024-09-26 16:31:22,318 P[53560] [MainThread 69032] Received notification for closed streaming session 0
2024-09-26 16:31:22,318 P[53560] [MainThread 69032] Received notification for closed streaming session 0
2024-09-26 16:31:22,319 P[53560] [MainThread 69032] Init a Desktop session with new app_key

I have tried to follow https://developers.lseg.com/en/article-catalog/article/eikon-data-api-python-troubleshooting-refinitiv. However, I failed to find the log file named "SxS.<datetime>.p<process-id>.txt".

Could you please help me to address the issue? Thank you.

#technologyerrorport-number
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
Accepted
87.1k 294 53 79

@goca

Thank you for reaching out to us.

We need the SxS log to verify if the API proxy was running properly.

If you are unable to find this file, please contact the Eikon support team directly via MyAccount to verify what the problem is.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
1 1 1 2

I have this same issue, also with the missing SxS log it seems many people have it

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.