question

Upvotes
Accepted
3 0 0 3

What could cause intermittent "Failed to make subscription" StatusMsg

Hi,

I'm using ema-3.4.0.1.jar, sometimes I get "Failed to make subscription" StatusMsg with DataState.SUSPECT data state when subscribing to instruments, the instruments seem fine as subscribing again would work fine although sometimes a few more tries are needed.

So if I subscribe/unsubscribe to some instruments continuously every second, sometimes I get data back, sometimes I get that StatusMsg. What's the likely cause of this error?

elektronrefinitiv-realtimeelektron-sdkrrtema-apielektron-message-apijavastatus
icon clock
10 |1500

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

1 Answer

Upvotes
Accepted
23k 22 9 14

Hello @ahmire.kailer,

A couple of different ideas here, as I do not recall seeing this message before.

Are you, per chance, subscribing and unsubscribing in rapid succession, from multiple threads, and one action is not completed before l the next action is attempted?

If the case, for your use case, issuing a snapshot, non-streaming request would be more suitable (See Snapshot & Streaming Requests in EMA Developer Guide)?

Examining EMA source code for ESDK 1.4 (you can download the full open source code via Elektron SDK on GitHub) I am not finding this or similar message. Looking at OmmState.java implementation, so not see it. Is the message perhaps originating from custom code? Then you can try to find out more about the cause at the point in custom consumer code where it's being generated.

Another potential way to find out more is to enable tracing via XmlTraceToStdout ( see EMA Config Guide).

icon clock
10 |1500

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

Click below to post an Idea Post Idea