We're using 15.3.0 react native.
Shake.setNetworkRequestsEnabled(false) seem to help.
Exception '-[__NSCFNumber length]: unrecognized selector sent to instance 0xaf0670999e32ba90' was thrown while invoking insertNetworkRequest on target RNShake with params (
{
duration = 141;
method = POST;
requestBody = "{\"alias\":{\"userId\":\"u:Ch5nSmc3dndHMFlmRmg3dTl4K09kUk5jUnNENnFMZGI\"},\"credentials\":[{\"tokenCredential\":{\"token\":\"eyJraWQiOiJmOGM2Y2EyMi05NDA0LTQxYWItYTIwMC1hY2U3MTgxZWFjZWEiLCJhbGciOiJFUzI1NiJ9.eyJpc3MiOiJzdGVwIiwiaWF0IjoxNjcxMTM0NTAwLjM4LCJleHAiOjE2NzExMzgxMDAuNTIxMDAwMX0.GPJ8X5X_obEAzzBB_wL8N11zytr0aEwsq7AvzDUN_KKoZ7qdrwESIqnlvLPIvaPMp-CGWZbn7PElHGSgmRhhQA\"}}],\"sessionLifetimeMs\":\"86400000\",\"clientTimeMs\":\"1671134500397\",\"device\":{\"token\":\"0610EmS/HHEdMWnSPZMK/dxawxlP+PE+T6tg5S5hXucetUfy8u4Cc5n+Mj/WX91HySZ1rVJ4CRfA8YCPMxWFT1qjN709+WUEZCzJ5AwNxvmxFWHwgeBBLRKWxfCBh9dsKw10VMS1ubYj7cnijhzpNO9rPd6av+D+NUQ4uRkR1J76n0eBinA52iPKgW2qT1t7QNqTjc8lWxebCtT/r39/BTsVPTj0YSt0/VS71dyL28ZHyVxBACJz2RF8pBWLOEsUgGEmZ2uxJGXsycnPQXyZq31KE/FOTO0QDHbM1M/TbqRA0rTljrVsKGQtAdhOSSiCHDZTtAM2eB3kl97mxbU0J3vbX3oxbwU0i3I4FBIwPMEkGAl7xxwRi50Gks+JFyT+e8SEvneFRC0wirkZx6g8SO0B0nLGIrUYaaDLa988u0GrZ49iUzcwSQx27WD/seR1OBXISKnrZ9VaJ38Lf0vYAvNm/KeBk0uDhYrh2G+7n1W784j8DN9okBo6dgLYXayGaIFsQUU7ZCy73ODNHaD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rHemjUIyjtIYHK0JinhJZoJg1m0Ca40W0R+i0ThvID9OavqgCE73YiYFucNj8krF8wY9Zxb0ds8wyTSqcPZX4rEJqMWQsaSIjuousIVTx6Ho/JhHV8UwhsbERPLKa50vhUp7JwxeHRGo5y4q3vYiXXL41kdpqYVQ2KkeOFo4SO/S7uboc/DItFe3SiU6Clvm7K6LV2QUDBcLHF8wjJcsnUtN2m8j+3al0qTMOfdtO2Em/K8/pqbDP3eA7Xt8kEFy5pJ20RDnm/vskGnuL80ijapd03IJr19NnOUPDdimfKjEnT3dwLcgIpPmmZxt23fam4ZjuM0FRdTwP4g==\",\"provider\":\"IOVATION\"}}";
requestHeaders = {
Accept = "application/json, text/plain, */*";
"Content-Type" = "application/json";
"Step-App-Version" = "iOS/2.3.161-2823";
"Step-Bundle-Id" = "com.step.dev";
"Step-SDK-Version" = "1.546.0";
"X-Cloud-Trace-Context" = "f19ccdc7f2aa407b9510a6af69528fa8/0";
"X-Step-Original-Request-Timestamp" = 1671134500397;
"X-Step-Sentry-Trace-Id" = 9444bc4e3c924177a6189a2dceada0c6;
};
responseBody = "{\n \"refreshToken\": {\n \"value\": \"eyJraWQiOiJFVGluQlEwQ3ZfRDhRQk1ZUVlHbHBHWXpaR2dxU2c0R2FSN2twaTFVV0Y0IiwiYWxnIjoiRVMyNTYifQ.eyJjcyI6LTkwLCJzdWIiOiJ1OkNoNW5TbWMzZG5kSE1GbG1SbWczZFRsNEswOWtVazVqVW5ORU5uRk1aR0kiLCJzIjpmYWxzZSwiZCI6ZmFsc2UsImciOltdLCJpc3MiOiJzdGVwIiwiYWwiOjEsImV4cCI6MTY3MTIyMDkwMCwiaWF0IjoxNjcxMTM0NTAwLCJkaWQiOiJmZDpDaDFSYm1sdVNGSXhObVo0U0hwbFJWbExhbXgwVlVoT2FrTjFNVkJNTWcifQ._Z2TAaEjcR7WeoiTvCLqxe15XE5QWCveIV4IvDnj4lN3z1glM1BayJgwgy0rQliwYnHXXKvTLw6Z2pxlTihQhg\",\n \"lifetimeMs\": \"86400000\"\n },\n \"accessToken\": {\n \"value\": \"eyJraWQiOiJFVGluQlEwQ3ZfRDhRQk1ZUVlHbHBHWXpaR2dxU2c0R2FSN2twaTFVV0Y0IiwiYWxnIjoiRVMyNTYifQ.eyJzdWIiOiJ1OkNoNW5TbWMzZG5kSE1GbG1SbWczZFRsNEswOWtVazVqVW5ORU5uRk1aR0kiLCJkIjpmYWxzZSwiZyI6W10sImlzcyI6InN0ZXAiLCJhbCI6MSwidmUiOnRydWUsImNzIjotOTAsInMiOmZhbHNlLCJ2cCI6dHJ1ZSwiZXhwIjoxNjcxMTM1MTAwLCJpYXQiOjE2NzExMzQ1MDAsImRpZCI6ImZkOkNoMVJibWx1U0ZJeE5tWjRTSHBsUlZsTGFteDBWVWhPYWtOMU1WQk1NZyJ9.fncDQwElOxDeR8tub90m5GoYf9ZqSiF4KcafWhiK_qpwYhxnC5hiuIe-RdjXyD_-BjEBQE66d1-QF6NZ4B9m3A\",\n \"lifetimeMs\": \"600000\"\n },\n \"userId\": \"u:Ch5nSmc3dndHMFlmRmg3dTl4K09kUk5jUnNENnFMZGI\"\n}";
responseHeaders = {
"alt-svc" = " h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000";
"cache-control" = " no-cache, no-store, must-revalidate";
"content-type" = " application/json";
date = " Thu, 15 Dec 2022 20:01:40 GMT";
expires = " 0";
pragma = " no-cache";
server = " istio-envoy";
"strict-transport-security" = " max-age=31536000; includeSubdomains;";
via = " 1.1 google";
"x-content-type-options" = " nosniff";
"x-envoy-upstream-service-time" = " 41";
"x-frame-options" = " deny";
"x-xss-protection" = " 1; mode=block";
};
statusCode = 200;
timestamp = "2022-12-15T20:01:40.403000+0000";
url = "https://api.dev.step.com/auth/login";
}
)
callstack: (
0 CoreFoundation 0x0000000199749e94 5CDC5D9A-E506-3740-B64E-BB30867B4F1B + 40596
1 libobjc.A.dylib 0x0000000192a778d8 objc_exception_throw + 60
2 CoreFoundation 0x00000001998be84c 5CDC5D9A-E506-3740-B64E-BB30867B4F1B + 1566796
3 CoreFoundation 0x000000019975ffa0 5CDC5D9A-E506-3740-B64E-BB30867B4F1B + 130976
4 CoreFoundation 0x00000001997c8350 _CF_forwarding_prep_0 + 96
5 CFNetwork 0x000000019a8c7fd4 CFURLRequestSetHTTPRequestBody + 15172
6 CFNetwork 0x000000019a8c6668 CFURLRequestSetHTTPRequestBody + 8664
7 CFNetwork 0x000000019a8ffa08 CFURLRequestSetShouldStartSynchronously + 31144
8 CFNetwork 0x000000019a906470 CFURLRequestSetMultipleHTTPHeaderFields + 128
9 Shake 0x000000010a887f6c -[SHKNetworkRequestReporter reportRequestCompletedWithRNDict:] + 388
10 Shake 0x000000010a83bf90 +[SHKShake _reportRequestCompleted:] + 84
11 react_native_shake 0x0000000107aa46f8 -[RNShake insertRNNetworkRequest:] + 108
12 react_native_shake 0x0000000107aa28a8 -[RNShake insertNetworkRequest:] + 96
13 CoreFoundation 0x00000001997b4704 5CDC5D9A-E506-3740-B64E-BB30867B4F1B + 476932
14 CoreFoundation 0x0000000199760b6c 5CDC5D9A-E506-3740-B64E-BB30867B4F1B + 133996
15 CoreFoundation 0x0000000199760584 5CDC5D9A-E506-3740-B64E-BB30867B4F1B + 132484
16 React 0x00000001072308c4 -[RCTModuleMethod invokeWithBridge:module:arguments:] + 1744
17 React 0x0000000107234214 _ZN8facebook5reactL11invokeInnerEP9RCTBridgeP13RCTModuleDatajRKN5folly7dynamicEiN12_GLOBAL__N_117SchedulingContextE + 1108
18 React 0x0000000107233be4 _ZZN8facebook5react15RCTNativeModule6invokeEjON5folly7dynamicEiENK3$_0clEv + 144
19 React 0x0000000107233b48 ___ZN8facebook5react15RCTNativeModule6invokeEjON5folly7dynamicEi_block_invoke + 28
20 libdispatch.dylib 0x000000010a6705a8 _dispatch_call_block_and_release + 32
21 libdispatch.dylib 0x000000010a67205c _dispatch_client_callout + 20
22 libdispatch.dylib 0x000000010a682810 _dispatch_main_queue_drain + 1196
23 libdispatch.dylib 0x000000010a682354 _dispatch_main_queue_callback_4CF + 44
24 CoreFoundation 0x00000001997da6f8 5CDC5D9A-E506-3740-B64E-BB30867B4F1B + 632568
25 CoreFoundation 0x00000001997bc058 5CDC5D9A-E506-3740-B64E-BB30867B4F1B + 507992
26 CoreFoundation 0x00000001997c0ed4 CFRunLoopRunSpecific + 612
27 GraphicsServices 0x00000001d2ac2368 GSEventRunModal + 164
28 UIKitCore 0x000000019bc9f3d0 179501B6-0FC2-344A-B969-B4E3961EBE10 + 3810256
29 UIKitCore 0x000000019bc9f034 UIApplicationMain + 340
30 Step Beta 0x000000010243742c main + 64
31 dyld 0x00000001b7e2c960 CB3FF411-4762-34D2-86A4-ECA13F9FB6C3 + 88416
)
RCTFatal
facebook::react::invokeInner(RCTBridge*, RCTModuleData*, unsigned int, folly::dynamic const&, int, (anonymous namespace)::SchedulingContext)
facebook::react::RCTNativeModule::invoke(unsigned int, folly::dynamic&&, int)::$_0::operator()() const
invocation function for block in facebook::react::RCTNativeModule::invoke(unsigned int, folly::dynamic&&, int)
_dispatch_call_block_and_release
_dispatch_client_callout
_dispatch_main_queue_drain
_dispatch_main_queue_callback_4CF
5CDC5D9A-E506-3740-B64E-BB30867B4F1B
5CDC5D9A-E506-3740-B64E-BB30867B4F1B
CFRunLoopRunSpecific
GSEventRunModal
179501B6-0FC2-344A-B969-B4E3961EBE10
UIApplicationMain
main
CB3FF411-4762-34D2-86A4-ECA13F9FB6C