Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Eikon Data APIs /
avatar image
Question by niskrev · Oct 16, 2020 at 09:58 AM · python eikonporthandshake

Python API Error on handshake port 9000

After EIKON App update earlier this week I can no longer use the python API. In particular, the error I get is:

Error on handshake port 9000 : ReadTimeout(ReadTimeout())

The app and Excel addon are working fine. I tried restarting the app and the PC but no luck. I also run the Powershell script (CheckEikonDataAPI14.ps1) provided in answers to similar questions. The output is attached. Hope someone will be able to help resolve the problem

installed versions:

Eikon Desktop: 4.0.52005

python libraries:

eikon: 1.1.2

http3: 0.6.7

nest-asynco : 1.0.0

output2.txt (79.4 KiB)

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

5 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by pierre.faurel · Oct 16, 2020 at 05:45 PM

Do you have similar logs ?

[2020-10-16 08:51:08.341|1|api-svc|1|INFO] Listening to port=9060
...
[2020-10-16 12:30:46.598|1|data-api|1|INFO] [LogRequestDetailMiddleware][Request #73f907d4-f729-4c55-811c-009a75643609] New incoming GET request
[2020-10-16 12:30:46.605|1|data-api|3|DEBUG] [LogRequestDetailMiddleware][Request #73f907d4-f729-4c55-811c-009a75643609] URL: http://127.0.0.1:9060/api/status
[2020-10-16 12:30:46.611|1|data-api|3|DEBUG] [LogRequestDetailMiddleware][Request #73f907d4-f729-4c55-811c-009a75643609] Headers: {"host":"127.0.0.1:9060","user-agent":"python-httpx/0.14.3","accept":"*/*","accept-encoding":"gzip, deflate","connection":"keep-alive","x-tr-applicationid":"xxxxxxxxxxxxxxxxxxxx"}
...
[2020-10-16 12:30:46.671|1|data-api|1|INFO] [LogRequestDetailMiddleware][Request #4caacf9b-7fdd-49cc-b5e5-83c78ff41a33] New incoming POST request
[2020-10-16 12:30:46.679|1|data-api|3|DEBUG] [LogRequestDetailMiddleware][Request #4caacf9b-7fdd-49cc-b5e5-83c78ff41a33] URL: http://127.0.0.1:9060/api/handshake
[2020-10-16 12:30:46.687|1|data-api|3|DEBUG] [LogRequestDetailMiddleware][Request #4caacf9b-7fdd-49cc-b5e5-83c78ff41a33] Headers: {"host":"127.0.0.1:9060","user-agent":"python-httpx/0.14.3","accept":"*/*","accept-encoding":"gzip, deflate","connection":"keep-alive","content-type":"application/json","x-tr-applicationid":"xxxxxxxxxxxxxxxxxxxx","content-length":"161"}
...
[2020-10-16 12:30:46.780|1|data-api|3|DEBUG] Sending usage tracking payload {"Target":"/UsageTracking","RequestType":"send","Method":"EventRawData","MethodParam":{"EventName":"RequestReceived","EventProperties":"{\"AppKey\":\"1fdf06af15764dc79e27fa4760bb77464642e8f8\",\"EndPoint\":\"SymbologySearch\",\"API\":\"Eikon Data APIs\"}","ProjectToken":"881d83de3bf9490988d03e2250149e5a"}} on EikonBus channel /UsageTracking
[2020-10-16 12:30:47.865|1|api-svc|3|DEBUG] Request -> https://amers1.apps.cp.thomsonreuters.com/Apps/UDF/MSF has a response with status code: 200

Check especially how API Proxy manages each request (search "New incoming POST request").

Comment

People who like this

0 Show 2 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
niskrev · Oct 19, 2020 at 03:46 PM 0
Share

Hi @pierre.faurel,

Setting ek.set_log_level(1) provided some useful information but I can only see it on the screen, couldn't find it in the logs. The message is basically that the site has been blocked by my organization. Among other things, the message on the screen shows the following, followed by the line "Access Blocked".

2020-10-19 16:29:10,600 P[25128] [MainThread 25132] Port 9060 was retrieved from .portInUse file
2020-10-19 16:29:10,601 P[25128] [MainThread 25132] Try to handshake on url http://127.0.0.1:9060/api/handshake...
2020-10-19 16:29:10,602 P[25128] [MainThread 25132] Request to http://127.0.0.1:9060/api/handshake
        headers = {'Content-Type': 'application/json', 'x-tr-applicationid': '859e545618c948d39d7d7b34ddaa16a8e01f8a59'}
        params = None
2020-10-19 16:29:10,842 P[25128] [MainThread 25132] HTTP request response 200

I can request access to an URL to be unblocked, but am not sure what it is, is it http://127.0.0.1:9060/api/handshake? Thanks for your help!

avatar image
REFINITIV
pierre.faurel niskrev · Oct 19, 2020 at 05:50 PM 0
Share

This becomes too technical and personal.

If you can see an "Access Blocked", I'll suggest to use a tool like Fiddler, or to check with your IT which access was blocked.

To avoid any exchange of individual data, could you contact the Refinitiv support to send this request and specify to contact dev team.
Support will contact us.

avatar image
REFINITIV
Answer by pierre.faurel · Oct 16, 2020 at 10:03 AM

Hi,

Could you detail your Eikon version and APPs versions (from Eikon Help About windows) ?

And just to avoid confusion, confirm version of python libs:

  • eikon
  • httpx
  • nest-asynco

Comment

People who like this

0 Show 1 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
niskrev · Oct 16, 2020 at 10:14 AM 0
Share

Eikon Desktop: 4.0.52005

python libraries:

eikon: 1.1.2

http3: 0.6.7 (I dont have httpx installed, in case it's relevant, the version of requests I have is 2.22.0)

nest-asynco : 1.0.0


Thanks!



avatar image
REFINITIV
Answer by jason.ramchandani · Oct 16, 2020 at 10:06 AM

@niskrev What versions of the following are you running:

Eikon Desktop

Eikon Library

Python

Also please see this thread and let us know how you get on.

Comment

People who like this

0 Show 1 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
niskrev · Oct 16, 2020 at 10:51 AM 0
Share

@jason.ramchandani I reinstalled eikon and now have 1.1.6.post3

installed httpx==0.14.3

nest-asyncio is 1.3.3

python is 3.7.7

cleared the EIKON cache (but kept Keep Apps cache box checked)

The error I get now is

Error on handshake port 9060 : JSONDecodeError('Expecting value: line 1 column 1 (char 0)')

The PS script produces an output file which to too big to attach here (991KB). So instead I attach the parts which seem most relevant. short_output.txt

short-output.txt (4.6 KiB)
avatar image
REFINITIV
Answer by jirapongse.phuriphanvichai · Oct 16, 2020 at 11:16 AM

@niskrev

You can try the following commands in PowerShell.

Invoke-WebRequest -Uri "http://127.0.0.1:9060/api/v1/data" -Method POST
Invoke-WebRequest -Uri "http://127.0.0.1:9000/api/v1/data" -Method POST
Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
REFINITIV
Answer by pierre.faurel · Oct 16, 2020 at 12:45 PM

Hi,

eikon 1.1.7 is available on pypi.

Not sure that will fix your issue but it'll provide more information in logs and JSONDecodeError is well managed.

Could you update and retry with "ek.set_log_level(1)" in your script ?

Could you check also in Eikon logs the file APIProxy.yyyymmdd.hhmmss.txt ?
(it should be in C:\ProgramData\Thomson Reuters\Eikon Data\Logs\TRD\Eikon.202010dd.hhmmss.pxxxx directory)


Comment

People who like this

0 Show 1 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
niskrev · Oct 16, 2020 at 05:00 PM 0
Share

This is the content of the log file:

start node
Arg: C:\Program Files (x86)\Thomson Reuters\Eikon\X\Bin\Eikonbox.exe C:\Users\eeu227\AppData\Local\Thomson Reuters\Eikon User\Cache\LibraryCache\Apps\REFINITIVHOLDINGS.EIKON.DATAAPIPROXY\1.1.0.11\index.js -TraceLevel=-1 

I updated to eikon 1.1.7 but still get the same error

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
14 People are following this question.

Related Questions

Only one year of data with get_timeseries for LNG-JCCIJP-LTC

How do I change the port for Eikon Data API?

Historical fundamental data with multiple periods

ek.get_data not providing all data for ticker 'GOLD.N'

Gap in FX data via Eikon API

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Electronic Trading
    • Generic FIX
    • Local Bank Node API
    • Trading API
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges