iPlanet session has been expired

We received this message twice over the weekend: {"error":"access_denied" ,"error_description":"iPlanet session has been expired." } while re-authenticating. It fixed itself after authenticating again.
Curious what it means as we generally try to keep our session alive 24/7.
Best Answer
-
The error seems to cause by the expired refresh token (18 hours) The workaround is to perform authorization with user/pass instead.
See also at : https://community.developers.refinitiv.com/questions/41556/electron-gets-disconnected.html
The development team also look into this for permanent fix.
0
Answers
-
happened again today.
0 -
Hi @vikas.khurana,
Does this happen only when you refresh your token? Does your token refresh properly? You mentioned it fixes itself - I’m not sure what that means.
Also, I assume your are connecting to ERT in Cloud?
Thanks.
0 -
Yea it happens upon trying to refresh the token. By "fixes itself" I mean we are able generate a new token then recreate the websocket session and are up and running again.
0 -
Hi @vikas.khurana,
The error indicates your token has expired. I believe this is occurring due to a timing issue. Are you using the exact time provided in the "expires_in": 300 field to request for a new token? Initially, I found that most times I was able to refresh my token using this exact value (300 seconds), but periodically the timers don't fire in sync. I found that if I give a 10 second leeway, i.e. 290 seconds, it seems to consistently work. Give that a try.
0 -
i actually do it in half the expire time, so if comes back at 300 seconds I refresh it every 150 seconds. Whats interesting is the expire time was not always 300 seconds when the error happened. Here is a log of what happened up to the iPlanet error.
[LogTime: 05:33:25.166] Successfully Re-Authenticated. Token expires in: 300 seconds.
[LogTime: 05:35:55.594] Successfully Re-Authenticated. Token expires in: 300 seconds.
[LogTime: 05:38:26.204] Successfully Re-Authenticated. Token expires in: 300 seconds.
[LogTime: 05:40:56.670] Successfully Re-Authenticated. Token expires in: 138 seconds.
0 -
[LogTime: 05:42:06.294] Successfully Re-Authenticated. Token expires in: 289 seconds.
[LogTime: 05:44:31.209] Unable to authenticate, received 401 Unauthorized. HttpEntity.Strict(application/json,{"error":"access_denied" ,"error_description":"iPlanet session has been expired." } )
0 -
@vikas.khurana
There may be reasons why the expire time coming back is different. Have you tried many different retry times? Picking half the time seems overly aggressive and I'm not sure what the effect will be if you get expire times like 138 seconds and picking half of that. Can you try a much less retry time, say only 10 seconds less?
thanks.
0 -
yea i'll give it a shot.
0 -
@vikas.khurana, did Nick's suggestion solve the issue ?
0 -
Yes it still happens but a lot less frequent. Last time it happened was on 2019-01-03.
0 -
It actually has happened twice this weekend. Its odd, why does it happen?
0 -
Hi @vikas.khurana,
Can you provide logs showing the details? You didn’t clarify but are you setting the leeway by 10 seconds, that is 290 secs?
0 -
Yep that is correct.
Here is the relevant part of the log (there are a bunch of ping/pong messages sent about every 20 seconds in between):
[AkkaTime: 19:48:14.089UTC] Successfully Re-Authenticated. Token expires in: 300 seconds.
[AkkaTime: 19:53:04.521UTC] Failed. Code: 401 Unauthorized, Entity: HttpEntity.Strict(application/json,{"error":"access_denied" ,"error_description":"iPlanet session has been expired." } )
0 -
Hi @vikas.khurana,
The best course of action is to open a support ticket on the https://my.refinitiv.com/ site. Given this will likely require troubleshooting on the server side, you will likely need to provide your Machine ID as part of your question. To open a ticket, click on the above link and do the following:
- Click the "Get Support" button on the top right.
- Select "Product and Content" and then click "I need help using the product".
- From the Product drop list, choose: "Elektron Real Time in Cloud".
- Provide your details - reference this question as well.
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 37 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 698 Datastream
- 1.5K DSS
- 633 Eikon COM
- 5.2K Eikon Data APIs
- 14 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 6 Trading API
- 2.9K Elektron
- 1.5K EMA
- 257 ETA
- 565 WebSocket API
- 40 FX Venues
- 16 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 25 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 283 Open PermID
- 47 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 24 RDMS
- 2.1K Refinitiv Data Platform
- 799 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 122 Open DACS
- 1.1K RFA
- 107 UPA
- 194 TREP Infrastructure
- 232 TRKD
- 918 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 101 Workspace SDK
- 11 Element Framework
- 5 Grid
- 19 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛