react-native-fetch-blob
react-native-fetch-blob copied to clipboard
close NetWork when is downloading
RN 0.55.4 RNFetchBlob:0.10.8
when downloading a file close the network ,it will throws a Exception,like a java.net.ProtocolException: unexpected end of stream
,
but u do nothing to reject the Exception or send a notification.
RNFetchBlobReq.java
line:514~516
the code catch the ex,and ignored it . so when close network ,the file is not downloaded complete , and no response for this .
PS: you catch the exception at RNFetchBlobFileResp.java line:97~99 and return -1 ,unwrap this try catch you will catch the exception in RNFetchBlobReq.java
my english is bad ,Thank you for seeing this yours sincerely
Any solution? Same (and annoying) error here!