question

Upvotes
Accepted
5 2 1 4

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 512.0 KiB each and 1.0 MiB total.

Same query as this one.

@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 ?

@meera_c

Hi,

Thank you for your participation in the forum.

Are any of the replies below satisfactory in resolving your query?

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

Otherwise please post again offering further insight into your question.

Thanks,

AHS

Hi @meera_c

Thank you for your participation in the forum.

Are any of the replies below satisfactory in resolving your query?

If yes please click the 'Accept' text next to the most appropriate 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
22.1k 59 14 21

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 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.