Status Stream closed message with "Timeout" Code ?
We are receiving stream closed status message with "timeout" code few times.
Could you please suggest what does it mean and how best we can recover after receiving this message?
{
"ID": 1,
"Type": "Status",
"Domain": "Login",
"Key": {
"Name": "AQIC5wM2LY4SfcyQZKRDTOqVOwA16STH0djM%2FLFEWvHG8k0%3D%40AAJTSQACMjAAAlNLABQtNzMwNTYzMjgyMjcwMDIwMDQ5NwACUzEAAjMy%23"
},
"State": {
"Stream": "Closed",
"Data": "Suspect",
"Code": "Timeout",
"Text": "TREP authentication token has expired."
}
Best Answer
-
Hello @cbhavsar,
I have checked a given re-login message, the message is a valid JSON OMM format.
The all JSON messages between the application and ERT in cloud (since the EDP request and first login) will let me verify the your messages flow that encounters the problem in detail.
In the mean time, I suggest you raise a support ticket via My.Refinitiv Support - so they can confirm / investigate if their is an issue on the EDP/ERT in Cloud service
0
Answers
-
Hello @cbhavsar,
I am assuming that you are connecting to ERT in Cloud. If so, the each EDP login session will be expired in the "expire_in" value second.
Example: The expire_in value is 300, it means this access_token and Login will be valid for 300 seconds.
{
"access-token": "<access_token>",
"expires_in": "300",
"token_type": "Bearer",
"scope": "trapi",
"refresh_token": "<refresh_token>"
}Before expires_in is reached, the customer application is required to request a new <access_token> from the EDP gateway with the previously received refresh_token, username, and grant_type. The EDP gateway responds back to the customer application with a new access_token, expires_in, and refresh_token. Based on the new <access_token>, the client application is required to "reissue" to the ERT in Cloud streaming connection. This varies per connection type as above.
For the WebSocket, the reissue means send a new Login JSON message with the following conditions
- same ID
- new AuthenticationToken value (from a new access_token)
- Refresh attribute value False
- Send before expires_in is reached
You can see an example of how to handle this expires_in and reissue a refresh_token in the ERT in Cloud example (available in Python, Java and C# languages) in the download page.
0 -
We are already doing this. but still, I get this status msg.
just for information, when I tried last refresh login attempt. I received Login state as "OK" which is strange, I do not get Login state as "OK" when we try refresh login request.
0 -
Hi,
Yes we are connecting to ERT Cloud.
Please find below message we are getting as JSON response
{
"ID": 1,
"Type": "Status",
"Domain": "Login",
"Key": {
"Name": "AQIC5wM2LY4SfcyQZKRDTOqVOwA16STH0djM%2FLFEWvHG8k0%3D%40AAJTSQACMjAAAlNLABQtNzMwNTYzMjgyMjcwMDIwMDQ5NwACUzEAAjMy%23"
},
"State": {
"Stream": "Closed",
"Data": "Suspect",
"Code": "Timeout",
"Text": "TREP authentication token has expired."
}
}0 -
Hi Wasin,
Please find below JSON message I send as Login refresh
{
"ID": 1,
"Domain": "Login",
"Key": {
"NameType": "AuthnToken",
"Elements": {
"ApplicationId": "256",
"Position": "10.75.2.20",
"AuthenticationToken": "xxxxx"
}
},
"Refresh ": false
}0 -
Sorry, I did not capture all messages in log, I keep only login messages.
0
Categories
- All Categories
- 6 AHS
- 39 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 中文论坛