react-native-fetch-blob
react-native-fetch-blob copied to clipboard
[Android4.4]Self-Signed SSL Server Config don't work
My React Native version is 0.41.2, and the react-native-fetch-blob version is 0.10.8. I set the config
RNFetchBlob.config({
trusty : true
})
according to the doc, but when I send the request, I got the error
Error: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
How to solve it????
By the way, the code sample of Self-Signed SSL Server chapter is wrong,
RNFetchBlob.config({
trusty : true
})
.then('GET', 'https://mysite.com') -> fetch instead of then here
.then((resp) => {
// ...
})
I'm having the same issue with react-native 0.44.2 and react-native-fetch-blob 0.10.5 in a 4.4.4 tablet. I didn't have that problem with an android 5.0 or 6.0 ...
Same issue. Android 4.1.2 "react-native": "0.54.0", "react-native-fetch-blob": "0.10.8",
+1
+1 How to solve?
I am getting SSL handshake aborted: ssl=0xb9a723a0: error with trusty set to true on android kitkat. (4.4). any solution for this?
in my case, this error occurs.
RNFetchBlob error when sending request : SSL handshake timed out
- node_modules\expo\build\environment\logging.js:25:23 in warn
- node_modules\react-native\Libraries\YellowBox\YellowBox.js:67:8 in warn
- ... 7 more stack frames from framework internals
request timed out.
- node_modules\react-native-fetch-blob\index.js:301:25 in
- node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:397:4 in __invokeCallback
- ... 4 more stack frames from framework internals