Error code -1 | Port number was not identified. Check if Eikon Desktop or Eikon API Proxy is running
I was using the api yesterday and it was working perfectly and tried today to continue on a project and now I get the error " Error code -1 | Port number was not identified. Check if Eikon Desktop or Eikon API Proxy is running." any fix or am I gonna have to use another means?
tried solution: restart, uninstalling, re-installing, checked port number for the "9000"... don't know what to do next.
Best Answer
-
I cannot be certain, but it looks like the issue may be due to version incompatibility between some of the dependencies of Eikon Data APIs library. Specifically, I think the problem may be between the versions of httpcore and anyio libraries, although I cannot say under what conditions the issue you experienced may manifest. I just updated my machine to the latest versions of httpcore (v0.13.6) and anyio (v3.2.1), and I couldn't reproduce the behavior you saw. Maybe you should try the same. If the problem persists after updating httpcore and anyio libraries to the latest versions, try downgrading httpcore library to v0.13.3.
0
Answers
-
@s2127588 Are you working on the same machine? ie is Eikon running on the same physical machine as your python instance?
0 -
Hi, jason.ramchandani,
Yes, I'm on the same machine and yes Eikon is running on the same machine. I also tried following the troubleshoot article (https://developers.refinitiv.com/en/article-catalog/article/eikon-data-api-python-troubleshooting-refinitiv) but everything seems fine but still get the error when I try to do ek.set_app_key().
0 -
@s2127588 can you add the following (set_log_level) line to your code:
import eikon as ek
ek.set_log_level(1)
ek.set_app_key('your app key')and rerun and paste the output here (omitting any sensitive data like app keys etc.) thx
0 -
I get:
2021-07-05 13:23:19,905 P[12244] [MainThread 26252] Reset a Desktop session with new app_key
2021-07-05 13:23:19,908 P[12244] [MainThread 26252] Send GET request to http://127.0.0.1:9060/api/status to detect API Proxy...
2021-07-05 13:23:19,909 P[12244] [MainThread 26252] Request to http://127.0.0.1:9060/api/status
headers = {'x-tr-applicationid': 'app key'}
params = None
C:\Users\Gamer\anaconda3\lib\site-packages\httpcore\_backends\anyio.py:198: RuntimeWarning: coroutine 'current_time' was never awaited
return float(anyio.current_time())
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
2021-07-05 13:23:19,911 P[12244] [MainThread 26252] HTTP request failed: TypeError("float() argument must be a string or a number, not 'coroutine'")
2021-07-05 13:23:19,912 P[12244] [MainThread 26252] Error on checking port 9060 : TypeError("float() argument must be a string or a number, not 'coroutine'")
more following....
0 -
2021-07-05 13:23:19,912 P[12244] [MainThread 26252] Error on checking port 9060 : TypeError("float() argument must be a string or a number, not 'coroutine'")
2021-07-05 13:23:19,913 P[12244] [MainThread 26252] Warning: file .portInUse was not found. Try to fallback to default port number.
2021-07-05 13:23:19,913 P[12244] [MainThread 26252] Try defaulting to port 9000...
2021-07-05 13:23:19,915 P[12244] [MainThread 26252] Send GET request to http://127.0.0.1:9000/api/status to detect API Proxy...
2021-07-05 13:23:19,916 P[12244] [MainThread 26252] Request to http://127.0.0.1:9000/api/status
headers = {'x-tr-applicationid': 'app key'}
params = None
2021-07-05 13:23:19,917 P[12244] [MainThread 26252] HTTP request failed: TypeError("float() argument must be a string or a number, not 'coroutine'")
2021-07-05 13:23:19,918 P[12244] [MainThread 26252] Error on checking port 9000 : TypeError("float() argument must be a string or a number, not 'coroutine'")
2021-07-05 13:23:19,919 P[12244] [MainThread 26252] Try defaulting to port 36036...
2021-07-05 13:23:19,920 P[12244] [MainThread 26252] Send GET request to http://127.0.0.1:36036/api/status to detect API Proxy...
2021-07-05 13:23:19,921 P[12244] [MainThread 26252] Request to http://127.0.0.1:36036/api/status
headers = {'x-tr-applicationid': 'app key'}
params = None
0 -
2021-07-05 13:23:19,922 P[12244] [MainThread 26252] HTTP request failed: TypeError("float() argument must be a string or a number, not 'coroutine'")
2021-07-05 13:23:19,922 P[12244] [MainThread 26252] Error on checking port 36036 : TypeError("float() argument must be a string or a number, not 'coroutine'")
2021-07-05 13:23:19,923 P[12244] [MainThread 26252] Error: no proxy address identified.
Check if Eikon Desktop or Eikon API Proxy is running.
2021-07-05 13:23:19,924 P[12244] [MainThread 26252] Port number was not identified, cannot send any request
2021-07-05 13:23:19,924 P[12244] [MainThread 26252] Init a Desktop session with new app_key
2021-07-05 13:23:19,925 P[12244] [MainThread 26252] Port number was not identified.
Check if Eikon Desktop or Eikon API Proxy is running.
that's is what I get omitting the error named in the title question. is that what you want?
0 -
@s2127588 Thanks for sending that through I must say I havent seen that before - I understand as you are an academic user I cannot directly open a ticket on your behalf - the support team will tell me you must go through the person responsible for the Eikon's in your institution - like a librarian or some other member of staff. Please could you ask them to raise an escalation as this is not something we can really go through on a forum - you need a connectivity specialist to go through this with you. I hope this can help in a small way - its not ideal - I know. Please let me know how you get on.
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 中文论坛