react-native-tus-client icon indicating copy to clipboard operation
react-native-tus-client copied to clipboard

Exception '*** -[__NSDictionaryM setObject:forKey:]: key cannot be nil' was thrown while invoking createUpload on target RNTusClient with params (

Open hellochirag opened this issue 3 years ago • 4 comments

getting this error when upload starts processing..

IMG_DEFDCEBE9EFB-1

hellochirag avatar Sep 29 '21 14:09 hellochirag

@hellochirag did you ever figure this one out? We're having the same issue.

lucaswhitman avatar Feb 10 '22 19:02 lucaswhitman

Some extra details in our case:

Device and OS:

Hardware Model:     iPhone11,8
Role:               Foreground
OS Version:         iOS 15.1

Full exception

NSInvalidArgumentException: *** -[__NSDictionaryM setObject:forKey:]: key cannot be nil

0  CoreFoundation    ___exceptionPreprocess
1  libobjc.A.dylib   _objc_exception_throw
2  CoreFoundation    __CFThrowFormattedException
3  CoreFoundation    -[__NSDictionaryM setObject:forKey:].cold.1
4  CoreFoundation    -[__NSDictionaryM setObject:forKey:]
5  social            facebook::react::JSIExecutor::defaultTimeoutInvoker(std::__1::function<void ()> const&, std::__1::function<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > ()>) (social)
6  CoreFoundation    ___invoking___
7  CoreFoundation    -[NSInvocation invoke]
8  CoreFoundation    -[NSInvocation invokeWithTarget:]
9  social            facebook::react::JSIExecutor::defaultTimeoutInvoker(std::__1::function<void ()> const&, std::__1::function<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > ()>) (social)
10 social            facebook::react::JSIExecutor::defaultTimeoutInvoker(std::__1::function<void ()> const&, std::__1::function<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > ()>) (social)
11 social            facebook::react::JSIExecutor::defaultTimeoutInvoker(std::__1::function<void ()> const&, std::__1::function<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > ()>) (social)
12 libdispatch.dylib __dispatch_call_block_and_release
13 libdispatch.dylib __dispatch_client_callout
14 libdispatch.dylib __dispatch_main_queue_callback_4CF
15 CoreFoundation    ___CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
16 CoreFoundation    ___CFRunLoopRun
17 CoreFoundation    _CFRunLoopRunSpecific
18 GraphicsServices  _GSEventRunModal
19 UIKitCore         -[UIApplication _run]
20 UIKitCore         _UIApplicationMain
21 social            _mh_execute_header (social)

lucaswhitman avatar Feb 10 '22 19:02 lucaswhitman

@vinzscam would appreciate any thoughts

lucaswhitman avatar Feb 10 '22 19:02 lucaswhitman

I'm also experiencing the same issue in IOS. Also, it's not uploading on VIMEO and can't find any logs that cause the issue, aside from restarting the application and creating TUS object to resume the current uploads this error comes up.

ccharliemagne avatar Mar 04 '22 06:03 ccharliemagne