benjreinhart / react-native-aws3

Pure JavaScript React Native library for uploading to AWS S3
MIT License
399 stars 151 forks source link

an ssl error #69

Open maxto024 opened 6 years ago

maxto024 commented 6 years ago

this is my code after it executes i get ssl error

 UploadImage(f){
   console.log(f,options)
  RNS3.put(f, options).then(response => {
    if (response.status !== 201)
      throw new Error("Failed to upload image to S3");
    console.log(response.body);
  }).catch((error)=>{
    console.log(error);
 });
 }

text:"An SSL error has occurred and a secure connection to the server cannot be made."

RohitRajpal commented 4 years ago

I am also getting the same error text:"An SSL error has occurred and a secure connection to the server cannot be made." Any update on the same?

RohitRajpal commented 4 years ago

RNS3.put(imageUploadObj, optionsAWS).then(response => { if (response.status == 201) { // instead of success , error is received. } }).catch((error) => {

       //error as mentioned above.
    });