react-native-fs icon indicating copy to clipboard operation
react-native-fs copied to clipboard

[iOS] - App crashes when URL given to downloadFile returns 404

Open nirsky opened this issue 9 years ago • 5 comments

When trying to download a file from bad URL my app crashes with the following error:

* Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[1]'

Please advise.

nirsky avatar Jul 19 '16 14:07 nirsky

A temporary fix was validating the URL beforehand using fetch. Causes bad performance though..

nirsky avatar Jul 20 '16 14:07 nirsky

same as me on IOS.

pomelio avatar Jul 20 '16 15:07 pomelio

i have this error and crash too

moby18 avatar Sep 26 '16 08:09 moby18

I have no time to fix this at the moment, but a proper PR is always welcome :)

johanneslumpe avatar Sep 26 '16 12:09 johanneslumpe

I am facing the same issue on windows, anyone fixed this?

ashatat avatar Feb 13 '22 12:02 ashatat