0

I am uploading image on AWS from my android app. In this attempt sometime I get the success and sometime I get failure and error as below:

com.amazonaws.AmazonClientException: Unable to execute HTTP request: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: AndroidOpenSSL, class: com.android.org.conscrypt.DefaultSSLContextImpl)

Please provide me solution for this as I can't get the exact reason about this.

  • Possible duplicate with https://stackoverflow.com/questions/6365209/java-and-ssl-java-security-nosuchalgorithmexception – VasFou Oct 10 '19 at 07:30
  • I checked, both are different. I am uploading image from Android Application. – Anurag Srivastava Oct 10 '19 at 07:33
  • Are you sure that the request is http and not https ? – VasFou Oct 10 '19 at 07:40
  • Yes, I am sure. I have created a bucket on s3, integrated aws sdk in android app and trying to upload image. Sometimes I got success but sometime I got this error. I am not sure why sometime. – Anurag Srivastava Oct 10 '19 at 07:43
  • Do you use any network with security and firewall sometimes ? – VasFou Oct 10 '19 at 07:44
  • I am using wifi and mobile network. But if the reason is this then how get success sometime. – Anurag Srivastava Oct 10 '19 at 07:48
  • For example you could use a corporate network, maybe in successfully uploads you switch to mobile network or in some cases the corporate network allow to upload the picture ! I have seen it in my company !! – VasFou Oct 10 '19 at 07:50
  • Let us [continue this discussion in chat](https://chat.stackoverflow.com/rooms/200637/discussion-between-anurag-srivastava-and-vasilisfoo). – Anurag Srivastava Oct 10 '19 at 07:54
  • What is Caused by: java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: AndroidOpenSSL, class: com.android.org.conscrypt.DefaultSSLContextImpl). I am getting this error for everything. – Anurag Srivastava Oct 10 '19 at 08:05

0 Answers0