itinance / react-native-fs

Native filesystem access for react-native
MIT License
4.94k stars 976 forks source link

Error with concurrent downloads: Error Domain=NSPOSIXErrorDomain No space left on device #522

Open kyle-ssg opened 6 years ago

kyle-ssg commented 6 years ago

I'm trying to download a large number of files, I find that if i do too many concurrent calls to RNFS.downloadFile I get the following error:

- (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didCompleteWithError:(NSError *)error
Error Domain=NSPOSIXErrorDomain Code=28 "No space left on device" UserInfo={_kCFStreamErrorCodeKey=28, _kCFStreamErrorDomainKey=1}

I can stagger downloads to fix the problem however this means that files will not download in the background.

n-sviridenko commented 3 years ago

Having the same issue