This repository was archived by the owner on Mar 16, 2019. It is now read-only.
This repository was archived by the owner on Mar 16, 2019. It is now read-only.
Crash when upload file with SSL (iOS9) #445
Open
Description
Hi, I got app crash (iOS 9 only) when I upload file with SSL
But it's okay with normal (non-SSL)
My code:
var params = [{
name: "f_oc",
data: "media-u"
}, {
name: "f_ccid",
data: f_ccid
}, {
name: "f_mdt",
data: f_mdt
}, {
name: "f_image",
filename : 'attachment.jpg',
data: RNFetchBlob.wrap(s_filepath)
}];
RNFetchBlob
.config({
trusty : true
})
.fetch(
'POST',
url, {
'Content-Type' : 'multipart/form-data'
}, params)
.then((res) => {
console.log(res.data);
callback(JSON.parse(res.data));
})
.catch((errorMessage, statusCode) => {
console.log("Error: "+ errorMessage + " - " + statusCode);
})
And I got details in xcode:
Assertion failed: (!fHeadersBegan), function _onqueue_beginHeaders, file /BuildRoot/Library/Caches/com.apple.xbs/Sources/CFNetwork_Sim/CFNetwork-758.0.2/HTTP2/SHTTP2Stream.cpp, line 722.
(lldb)