question

Upvotes
Accepted
1 0 1 2

API ERROR: ICSharpCode.SharpZipLib.SharpZipBaseException: Unexpected EOF

Client is currently getting end of stream exceptions whenever TRTH server takes times to send results. Client said process suddenly gives EOF, after reading 52M updates. This type of error is very frequent and makes extraction very slow. Below is the sample extraction notes file on when he experiences the issue for your further checking. He said that the error 1 even retrying does not help.

Error 1:

2023-08-28 10:02:17|No stream to read for from 1/11/2023 to 8/9/2023 for 3657... after 17074178 ticks: ICSharpCode.SharpZipLib.SharpZipBaseException: Unexpected EOF

Notes:

Notes: Extraction Services Version 17.3.1.46134 (701464ae16af), Built Jun 26 2023 09:41:09

User ID: 9018003

Extraction ID: 2000000604047472

Correlation ID: CiD/9018003/0x0000000000000000/RESTAPI-I/EXT.2000000604047472

Schedule: 0x089aac12d4a90e34 (ID = 0x0000000000000000)

Input List (5 items): (ID = 0x089aac12d4a90e34) Created: 08/28/2023 09:41:00 Last Modified: 08/28/2023 09:41:00

Report Template: _OnD_0x089aac12d4a90e34 (ID = 0x089aac12d4b90e34) Created: 08/28/2023 09:37:25 Last Modified: 08/28/2023 09:37:25

Schedule dispatched via message queue (0x089aac12d4a90e34), Data source identifier (6F9E58A1CA6C4D819B950F7E3AF8105D)

Schedule Time: 08/28/2023 09:37:26

Processing started at 08/28/2023 09:37:26

Processing completed successfully at 08/28/2023 09:41:00

Extraction finished at 08/28/2023 09:41:00 UTC, with servers: tmc92jxchn01, TRTH (186.544 secs)

Total instruments after instrument expansion = 5

Range Query from 2023-01-11T00:00:00.000 to 2023-08-09T00:00:59.000 (UTC)

Quota Message: INFO: Tick History Cash Quota Count Before Extraction: 75301; Instruments Approved for Extraction: 5; Tick History Cash Quota Count After Extraction: 75301, 75.301% of Limit; Tick History Cash Quota Limit: 100000

Please advise on this and let us know what is causing this issue and what to fix it.

#productapitick-history-rest-apidata
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

· Write an Answer
Upvotes
Accepted
87.1k 294 53 79

@janeclarize.puyat

Thank you for reaching out to us.

As I know, it is better to download a zip file and save the file on a local machine. Then, use the library to decompress the file to get the data.



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.

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.