react-native-blob-util icon indicating copy to clipboard operation
react-native-blob-util copied to clipboard

timeout is not working.

Open Shahanshah-TA opened this issue 1 year ago • 2 comments

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.

Shahanshah-TA avatar Sep 26 '24 09:09 Shahanshah-TA

How is it behaving in the current version 0.19.11?

RonRadtke avatar Oct 02 '24 19:10 RonRadtke

How is it behaving in the current version 0.19.11?

It is still not working

vawn-t avatar Dec 18 '24 07:12 vawn-t

the same here with version 0.21.2

icastillejogomez avatar Mar 27 '25 13:03 icastillejogomez

up. Version 0.21.2 still doesn't work

Madeean avatar Apr 15 '25 10:04 Madeean

timeout should be done as

fetch(url, { signal: AbortSignal.timeout(5000) })

jimmywarting avatar Jun 24 '25 17:06 jimmywarting