Upgrade from Eikon -> Workspace. Learn about programming differences.

For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 1 1 1

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. error-api-eikon.png

eikoneikon-data-apirefinitiv-dataplatform-eikonworkspaceworkspace-data-apierror-1
error-api-eikon.png (56.2 KiB)
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.

Hello @s2127588

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?


If so please can you click the 'Accept' text next to the appropriate reply? This will guide all community members who have a similar question.

Thanks,


AHS

@s2127588

Hi,

Please be informed that a reply has been verified as correct in answering the question, and marked as such.

Thanks,

AHS

Upvotes
Accepted
39.4k 77 11 27

@s2127588

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.

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
10.2k 18 6 9

@s2127588 Are you working on the same machine? ie is Eikon running on the same physical machine as your python instance?

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.

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().

Upvotes
10.2k 18 6 9

@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

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.

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....

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

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?

Upvotes
10.2k 18 6 9

@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.

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.