-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to execute HTTP request #833
Comments
What version of Java are you using? Sounds like you have outdated certs installed that can't validate newer regions. Are you seeing the issue consistently for those regions or just periodically? |
Hi, When run the same code on my Win machine with same Java version I do not observe the issue. One other question, is there any example in java that I can use trying to tunnel all aws calls through Socks and HTTP Proxies? Thanks |
Hi, Please let me know if you have some info about those proxies. Thanks |
Hi @nikolaitn |
FYI, I ran into this issue when I have Charles proxy enabled... |
@yzhong52 May I know how do you solve it with Charles Proxy enabled? Need this very much. Thanks. |
@AllysonYuShiong You probably have a different problem. I had this issue when I have Charles proxy enabled. It works after I close it. |
@yzhong52 thanks for reply. I need to restart my machine in order for it to work. I need to use charles proxy to capture the traffic so I must have charles proxy turned on. I tried cacerts and use us-west-2 region still it doesn't work with charles proxy. |
I had the exact same issue with the Fiddler proxy enabled. |
Hi,
I am using the latest java AWS SDK 1.11.30.
When I try to execute a request, for example whether a specified bucket exists,
I receive the following exception which happens from time to time and
for certain regions:
com.amazonaws.AmazonClientException: Unable to execute HTTP request: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:724)
at com.amazonaws.http.AmazonHttpClient.doExecute(AmazonHttpClient.java:466)
at com.amazonaws.http.AmazonHttpClient.executeWithTimer(AmazonHttpClient.java:427)
at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:376)
at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:4039)
at com.amazonaws.services.s3.AmazonS3Client.headBucket(AmazonS3Client.java:1234)
at com.amazonaws.services.s3.AmazonS3Client.doesBucketExist(AmazonS3Client.java:1191)
Regions that I do not observe this issue are US located. Issue occurs with EU and Asia regions.
Regards
The text was updated successfully, but these errors were encountered: