question

Upvotes
Accepted
5 0 0 3

TRTH v2 gzip download issue

I am using the class "DSS2OnDemandTicksTRTH" from the java examples to download data through AWS.

I am getting the ASW URI, from which I am able to download file by hitting the URL from browser

I have made a jar of the class and am running it from unix shell. When I execute the jar, I am getting the URI, however while streaming the data, I am getting connection timed out error.

In the below line to be exact:

GzipCompressorInputStream gis = new GzipCompressorInputStream( myURLConnection.getInputStream(), true);

I have also tried downloading without using AWS server, still encountering the same error on the same line.

I tired increasing the HttpURLConnection timeout, but still facing the same issue.

Any other suggestions please?

tick-history-rest-apijava
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.

@meera_c, did you change any of the query parameters of the java example (i.e. did you add instruments or change the date range for the query) ? Asked in a different way: what is the size of the file to download ?

Also: after how much time does it time out ?

1 Answer

Upvotes
Accepted
13k 32 12 18

Hi @meera_c

Couple of suggestions that you can try out:

1. Try using another os.

2. If going through a proxy, try a direct connection to internet.

3. Try a different network provider - maybe try from your home etc.

If you still have issues, we can try to run your code and validate.

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