"Authentication failed (1026, Request for token validation failed:Authentication server did not cont
RTO - Authentication Issue.txt
Hi DevAdvocates,
Would you kindly advise what the possible cause of the following error is?
"Text": "Authentication failed (1026, Request for token validation failed:"The authentication server did not contain "active" in response."
For context, the client is using the RTO data feed service and running the Python program 'market_price_rdpgw_service_discovery'. He is requesting real-time data and storing it in a .csv file for further use. Data is being fetched on a real-time basis. However, the authentication error message pops up about 11-12 minutes after initiation of 'market_price_rdpgw_service_discovery'. This error comes up only sometimes and not always. Please refer to the attached console log for more details. Console log file points to another issue: When fetching the real-time data through 'market_price_rdpgw_service_discovery', He is also updating the .csv file for the latest BID and ASK Prices. However, if we check the console log file or the .csv file where the real-time data is getting updated, the field 'VALUE_TS1' does not get updated on a real-time basis and points to a time which is about 5-7 mins old.
His use case is to run this .py file continuously throughout the day and update the .csv file with the real-time RICs: FX Spots and Forwards feed.
Kind regards,
Vanessa
Best Answer
-
Hello @vanessa.domo
Thank you for contacting us. The "1026, Request for token validation failed:Authentication server did not contain \"active\" in response." error message is generated from the RTO WebSocket server when it receives an expired/invalid Access Token in the WebSocket JSON login request message from the application.
Does the client use a single machine ID to run multiple applications/sessions? If they are using a single Machine ID with multiple sessions, the applications may encounter an error when an access token expires or when the applications attempt to refresh an access token. I highly recommend the client gets multiple Machine-IDs if they want to run multiple applications/sessions.
I also suggest you submit a support ticket to the RTO support team directly to verify the issue on the server side. The client can submit a ticket to the team via https://my.refinitiv.com/content/mytr/en/signin.html website.
1
Answers
-
Hi @wasin.w ,
I'm currently facing this issue, and @vanessa.domo helped to post the question on the forum as I'm still familiarizing myself with the Refinitiv systems.
Yes, I currently have only one machine ID, but I'm running only one application instance.
You've also mentioned that this error could result from receiving an invalid or expired token in the WebSocket JSON login. Is there any coding hack to re-request an Access token? Maybe put it in a while loop until I receive a valid or non-expired Access token?
0 -
Hello @raghav01
The market_price_rdpgw_service_discovery.py file uses the RTO/RDP V1 authentication which contains the following authentication information:
- A short-lived Access Token: This token is used in the WebSocket login request message.
- A long-lived Refresh Token: This token is only used to get new Access and Refresh tokens after the old one has expired.
- expires_in: Access token validity time in seconds
The market_price_rdpgw_service_discovery.py example code runs for 90% of the expires_in time, then re-login to the RDP to get the new access token and re-send the new access token to the WebSocket server. You can find the code logic on lines #568 to #585 of the source code.
- I highly recommend you check the WebSocket API tutorial: Connect to Refinitiv Real-Time - Optimized and RDP APIs tutorial: Authorization - All about tokens too.
Additionally, please be informed that the WebSocket API examples on GitHub are provided "as is" and they are aimed to demonstrate the API workflow only. They are not optimized for any production uses.
2
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 中文论坛