Error code -1 | Port number was not identified. eikon lib error.
sorry I can't write English.
sample code:
import eikon as ek ek.set_app_key('cxxxxx')
eikon.eikonError.EikonError: Error code -1 | Port number was not identified. Check if Eikon Desktop or Eikon API Proxy is running.
----------------------------------
http://localhost:9000/ping?all
{"port":9000,"mode":"eikon4","pid":5352,"hasSecure":true,"startedTime":"Thu Oct 08 2020 00:46:08 GMT+0900 (대한민국 표준시)","subApps":[{"path":"/heap"},{"path":"/ping"},{"path":"/sxs","data":{"hasSecure":true,"sxsApps":{}}},{
"path":"/api"},{"path":"/sxs/v1/services/messenger"}]}
checkeikondataapi.ps1
OS : window 10
Python version : 3.8.6 32bit
IDE : Pycharm
eikin lib version : 1.1.6.post3,
httpx version : 0.15.5
Eikon Desktop Info
eikon-desktop-info.txt
test ---
eikon lib version
1.1.2 work.
1.1.4 not work. Port number was not identified
1.1.5 not work. Port number was not identified
1.1.6 not work. Port number was not identified
thank you.
Best Answer
-
Thank you.. it's work.
eikon lib version : 1.1.6.post3
nest-asyncio lib version : 1.3.3Thank you.
0
Answers
-
From the output.txt, the proxy is running. The problem could be in the Python libraries.
GET: http://127.0.0.1:9000/sxs/v1 => Status Code: 200
GET: http://127.0.0.1:9000/ping => Status Code: 200
POST: http://127.0.0.1:9000/api/v1/data => Status Code: 200I can replicate the issue with Python 3.8 (32 bit) and Eikon 1.1.6.
From my checking, it uses nest-asyncio 1.4.1. I found an issue in GitHub. Therefore, I downgraded it to 1.3.3.
pip3.8 install nest-asyncio==1.3.3
Then, it works fine.
1 -
eikon lib version 1.1.6
nest-asyncio lib version 1.3.3um... it not works.
eikon lib 1.2.2 is work.
0 -
You can try the following command as mentioned in this thread.
> python -c "import httpx; print(httpx.get('http://localhost:9060/api/status'))"
And,
> set NO_PROXY=localhost:9000,localhost:9060> python -c "import httpx; print(httpx.get('http://localhost:9060/api/status'))"
Then, use the following code to list the versions of python libraries.
import pkg_resources
installed_packages = pkg_resources.working_set
installed_packages_list = sorted(["%s==%s" % (i.key, i.version)
for i in installed_packages])
print(installed_packages_list)Enable logging in asyncio and httpx with the following environment variables.
PYTHONASYNCIODEBUG=1
HTTPX_LOG_LEVEL=traceThen set logging to a file.
import logging
logging.basicConfig(filename='example.log', level=logging.DEBUG)Please share the package versions and log file. You need to remove the application key in the log file.
0 -
0
-
Can you test with 'eikon==1.1.6.post3'?
1.1.6.post3 should not have this error.
DEBUG:pyeikon:Error on checking port 9000 : AttributeError("'Request' object has no attribute 'prepare'")
0 -
Hi,
Your log.txt shows that you have 'httpx==0.16.1'
We identified that last versions (0.15 and 0.16) cause issues within connection to Eikon.
We're investigating this. In the meantime, we recommend to downgrade to 0.14.3 version (pip install httpx==0.14.3)0 -
The root cause should be found (see below last response)
0
Categories
- All Categories
- 6 AHS
- 37 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
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛