Uncaught exception of type NSException #119
Description
Hi ! I have a problem when I use the sample for uploading to DropBox. In android everything works.
But in iOS when I upload the app crash in Xcode. The problem appears when the code try to detect if the response header for Content-Type contains "text/" or "application/json".
This is what I have in XCode log :
2016-09-04 17:11:09.278 Olly[390:5537] -[__NSCFString containsString:]: unrecognized selector sent to instance 0x14ff5850
2016-09-04 17:11:09.281 Olly[390:5537] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString containsString:]: unrecognized selector sent to instance 0x14ff5850'
*** First throw call stack:
(0x2eb98f83 0x39349ccf 0x2eb9c917 0x2eb9b203 0x2eaea768 0x173685 0x2e81356d 0x2f4dd3c7 0x2f4cd5ab 0x2f57176d 0x398339ab 0x39844921 0x39844b21 0x39973bd3 0x39973a98)
libc++abi.dylib: terminating with uncaught exception of type NSException
The strange things is that the value of respCType is not null and contain "application/json" as you can see in the screenshot :
If I check the status code, the value is 200 that mean the upload is done successfully.
I don't understand what is the problem, I'm using rn-0.32.
Thank you.