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