Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Refinitiv Data Platform /
avatar image
Question by Mehdi_deprecated_0 · Apr 17, 2019 at 05:20 AM · elektron-sdkrdp-apirefinitiv-data-platform

Electron gets disconnected

Hi, We have trier to run the python client you suggested as it is in Github. The token expiration time from the server is 300. yous sample tries to refresh the access token after 270 seconds.We are getting the same disconnection problem: ending authentication request with refresh token to https://api.edp.thomsonreuters.com:443/auth/oauth2/beta1/token ...
EDP-GW authentication result failure: 400 Bad Request
Text: {"error":"access_denied" ,"error_description":"iPlanet session has been expired." }
Could not get authorisaton tokenwe ran the following:

git clone https://github.com/TR-API-Samples/Example.WebSocketAPI.Python.TestClientcd Example.WebSocketAPI.Python.TestClient/python pywstestclient.py -H emea-1.pricing.streaming.edp.thomsonreuters.com -p 443 -items VOD.L,BT.L -u GE-A-01627571-3-1503 -pw <our_password>

People who like this

0 Show 1
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.

avatar image
REFINITIV
Gurpreet ♦♦ · Apr 17, 2019 at 10:22 AM 0
Share

Moved to EDP.

3 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by nawapoom.lohajarernvanich · Apr 24, 2019 at 06:56 AM

@mehdi.azzouzi

The error could be from the refresh token expired (18 hours). If not, we will need to look further on how and when this application has been used.

The workaround is to avoid using refresh token at the moment and send the machineID and password instead. I’ve tested by simply modify the code at get_sts_token function to not using refresh token.

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
Ziemowit Kupracz · Jun 13, 2019 at 08:35 AM 0
Share

@Nawapoom Lohajarernvanich

Do you mean the modified request would be:

'username': {machineID e.g. GE-A-00000000-0-0000}
'password': {pass}
'grant_type': 'refresh_token'

instead of

'username': opts.user, 
'refresh_token': current_refresh_token,
'grant_type': 'refresh_token'

Possibly related: can customer get iPlanet if they're running multiple full login session from multiple IPs (positions)?

avatar image
REFINITIV
Answer by Gurpreet · Apr 17, 2019 at 10:21 AM

@mehdi.azzouzi: I downloaded the sample from github and ran it with same parameters and did not observe any disconnects. The token was successfully refreshed every 270 seconds. Are you going through a proxy server?

+ @Umer Nalla have you ever seen this?

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
Answer by Mehdi_deprecated_0 · Jun 24, 2019 at 04:42 AM

hi there, i am still seeing my Elektron via my python code getting disconnected. This is really bad because we are not in production:

I have followed your instructions of not using the refresh token but instead sending machineID and password but unfortunately it crashes undeterministicly with the following error:

File "/lib/python3.7/site-packages/websocket/_app.py", line 155, in send
"Connection is already closed.")
websocket._exceptions.WebSocketConnectionClosedException: Connection is already closed.

Can someone please help me on this serious matter as this is severly impacting PRODUCTION.

Thank you

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.

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 >
8 People are following this question.

Related Questions

Summaries.Definition("MyRIC").GetData() not working when invoking from WindowsFrom Application

Timed out waiting for TREP authentication response

Status code 401 - unauthorized / token expired

When is a message FINAL

ERT in Cloud Connectivity Issue!

  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • 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
  • FX Venues
    • FX Trading – RFQ Maker
  • Intelligent Tagging
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open Calais
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • RDMS
  • 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
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • Workspace SDK
    • Element Framework
    • Grid
  • World-Check Data File
  • Yield Book Analytics
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges