question

Upvotes
Accepted
9 3 2 6

State: Closed/Suspect/Timeout - text: "Authentication token has expired."

Our application is connecting successfully, but the connection drops after a little while. It does so systematically when restarted.


The same code works fine for other instances using other machine IDs. I have verified that only this instance use the machineID and I was confirmed that it is dedicated.


Is there a configuration that would disable or interfere with the token refresh?


Here is the output in the log:


2023-02-23 06:18:03,692 ERROR [pool-5-thread-1] | com.refinitiv.ema.access.OmmConsumerImpl | | loggerMsg

ClientName: LoginCallbackClient

Severity: Error

Text: RDMLogin stream was closed with status message

username **********************************************************

usernameType 1

State: Closed/Suspect/Timeout - text: "Authentication token has expired."

loggerMsgEnd



2023-02-23 06:18:03,692 WARN [pool-5-thread-1] | com.zerobase.reuters.MonitorConsumerClient | | received status message on monitor: StatusMsg

streamId="1"

domain="Login Domain"

state="Closed / Suspect / Timeout / 'Authentication token has expired.'"

name="**********************************************************"

nameType="1"

StatusMsgEnd


#technologyema-apitokensession
icon clock
10 |1500

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

Hi @andre.malenfant ,

Could you please let me know if the issue has been resolved or do you need any further helps on this?

Thanks,
AHS

@andre.malenfant

Hi,

Thank you for your participation in the forum.

Is the reply below satisfactory in answering your question?

If yes please click the 'Accept' text next to the reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks,

AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,


AHS

1 Answer

· Write an Answer
Upvotes
Accepted
22k 58 14 21

Hi @andre.malenfant,

Which version and language of SDK are you using?

There are couple of things you could try/verify:

  • Have you enabled the session management for this instance? It might be specified in the EMA config file or in your code.
  • Do other machine ID's successfully work on this instance of the code?
  • Do you still have this issue when using this machine ID with example code provided with the SDK?
  • You can also enable the XML log trace from the SDK to see whats happening on the streaming connection.


Since the token access/refresh endpoint is different from the streaming endpoint, is it possible that your firewall or other network component interfere with it. You can also play around with the token reissue ratio configuration paramete and reduce it to 0.5, see if that makes a difference.


icon clock
10 |1500

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

- Can you direct me to the session management configuration documentation?

-The same code works for other machine IDs

-I cannot test examples on this environment (prod)

-I have the trace enabled, maybe not all, will check that.

Check the EMA Config guide. It is in the docs folder of the SDK. Here is the Java version of this guide - https://github.com/Refinitiv/Real-Time-SDK/tree/master/Java/Ema/Docs

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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