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

close NetWork when is downloading

Open wxjer opened this issue 6 years ago • 1 comments

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

wxjer avatar Apr 18 '18 07:04 wxjer

Any solution? Same (and annoying) error here!

jpdesignerrio avatar Oct 16 '18 17:10 jpdesignerrio