HTTP Request Failed ConnectError ('[SSL: WRONG_VERSION_NUMBER]')

I have set my proxies and gone through the troubleshooting article: https://developers.lseg.com/en/article-catalog/article/eikon-data-api-python-troubleshooting-refinitiv?secureweb=RefinitivWorkspace
I still can't figure out what is the issue here and I'm already on my second app key
Here are some further logs:
2025-06-09 11:37:37,974 P[23400] [MainThread 23428] Reset a Desktop session with new app_key
2025-06-09 11:37:37,979 P[23400] [MainThread 23428] Send GET request to http://127.0.0.1:9007/api/status to detect API Proxy...
2025-06-09 11:37:37,980 P[23400] [MainThread 23428] Request to http://127.0.0.1:9007/api/statusheaders = {'x-tr-applicationid': '<APP_KEY>'}params = None
2025-06-09 11:37:38,692 P[23400] [MainThread 23428] HTTP request failed: ConnectError('[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1028)')
2025-06-09 11:37:38,693 P[23400] [MainThread 23428] Error on checking proxy url http://127.0.0.1:9007/api/status : ConnectError('[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1028)'
2025-06-09 11:37:38,694 P[23400] [MainThread 23428] Retrieved port 9007 value from .portIntUse isn't valid.
2025-06-09 11:37:38,695 P[23400] [MainThread 23428] Warning: file .portInUse was not found. Try to fallback to default port number.
2025-06-09 11:37:38,696 P[23400] [MainThread 23428] Try defaulting to port 9000...
2025-06-09 11:37:38,697 P[23400] [MainThread 23428] Send GET request to http://127.0.0.1:9000/api/status to detect API Proxy...
2025-06-09 11:37:38,698 P[23400] [MainThread 23428] Request to http://127.0.0.1:9000/api/statusheaders = {'x-tr-applicationid': <API_KEY>'}params = None
and Eventually:
2025-06-09 11:37:40,129 P[23400] [MainThread 23428] Default proxy port #9060 failed...
2025-06-09 11:37:40,136 P[23400] [MainThread 23428] Port number was not identified, cannot send any request
2025-06-09 11:37:40,138 P[23400] [MainThread 23428] Received notification for closed streaming session 0
2025-06-09 11:37:40,139 P[23400] [MainThread 23428] Received notification for closed streaming session 0
2025-06-09 11:37:40,141 P[23400] [MainThread 23428] Init a Desktop session with new app_key
FYI:
http://127.0.0.1:9007/api/status is shows me this:
{"statusCode":"ST_PROXY_READY","version":"3.11.0"}
So I know 9007 is the correct port it should be connecting to
Best Answer
-
The legacy Eikon data API won't be supported for long, and you will have to migrate to newer libraries. Most of the APIs are backwards compatible, so there should not be much change in the application code.
I think, the local connection to the API proxy is also being sent through your corporate proxy. If set - please unset the command line variable HTTP_PROXY and HTTPS_PROXY and try again.
0
Answers
-
Hello @ryan_choi
Can you please provide more information about your setup. Are you using LSEG Workspace with latest LD Library? Do you have a Corporate system proxy setup? Is this proxy setup as environment variables on the command line?
The SSL error should not come into play here - it is not an https connection.
0 -
I am using a corporate system proxy setup with LSEG workspace, but thr LD library unfortunately cannot be installed due to an issue installing metadata numpy in the lseg-data package which is odd. I have set up the environment variables in my code under HTTP_PROXY, HTTPS_PROXY, http_proxy, and https_proxy. Right now, I am currently using the Eikon Data API. However, several weeks ago I was able to get a connection using Eikon Data API and go through the tutorials such as getting the ISIN # for some symbols.
0 -
I set the proxy like this:
os.environ['http_proxy']=….
0 -
Ok I see. I unset the corporate proxy and it now works. Thank you so much!
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
- 618 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
- 557 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
- 276 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
- 655 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
- 229 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 中文论坛