react-native-tus-client
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 (
getting this error when upload starts processing..
@hellochirag did you ever figure this one out? We're having the same issue.
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)
@vinzscam would appreciate any thoughts
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.