react-native-blob-util
react-native-blob-util copied to clipboard
timeout is not working.
I am trying to upload file, everything working fine except timeout.
Using version: 0.17.1
getting warning in terminal stream was reset: CANCEL but in React Native side, neither its consoling response nor its going to catch block.
try{
const response = await ReactNativeBlobUtil.config({
timeout: 30000,
}).fetch(method, modifiedUrl, headers, payload);
console.log("response",response)
}catch(e){
console.error("error",e)
}
Any thing which I am doing wrong here.
How is it behaving in the current version 0.19.11?
How is it behaving in the current version 0.19.11?
It is still not working
the same here with version 0.21.2
up. Version 0.21.2 still doesn't work
timeout should be done as
fetch(url, { signal: AbortSignal.timeout(5000) })