question

Upvotes
Accepted
23 6 11 13

Stream is being closed error

Hi Sir

Client using RFA API program to retrive data from TREP, but always get "stream is been closed" error.

Log is too big to attach here, you can download from below link.

http://pan.baidu.com/s/1dE9dwGx

treprfarfa-apierrorstreaming-prices
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.

1 Answer

Upvotes
Accepted
7.6k 15 6 9

@jessie.lin

I can't find "stream is been closed" from log file you provided but I found below statusText instead. I assume that it's the message you mentioned.

2017 May 27 17:28:01.247 ST GMT+08:00 7113 F29AC720 918 TRACE <- Received MMT_MARKET_PRICE Status
streamState : Closed
dataState : Ok
statusCode : None
statusText : Process batch request message, batch stream is being closed
Batch handle: 0x234a330
itemFrom : BatchItemList1.

Regarding to batch request, normally an application should expect to get a batch handle for the initial batch request and an individual handle for each item that was requested. The handle that is associated with the batch request is different from a normal item handle. It cannot be used to reissue the batch request because by the time the application has received the response the stream associated with the batch handle is considered closed.

The first response for each item specified in a batch request always includes the item name and the item handle. Clients can use the item handle to identify subsequent response messages for the item or perform a reissue on the item stream.

The statusText should indicate the handle or stream for the batch request is being closed. This is expected result and you should get similar result when you test batch request with StarterConsumer_BatchView.

Is there any issue when receive the status text? Can you please elaborate more? If it's the case which requires further investigation, please ask your client open a new ticket to RFA Support team directly.

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 , Thank you! There is no other issues besides this suspend "warning" message. It is good to know it is just an normal status to indicate batch request closes.