Skip to content

iOS: Cannot create Factors #17

@tonyjaimep

Description

@tonyjaimep

Description

As the title suggests, I'm getting an error when I try creating Factors, the error log is provided below

I'm using a physical iOS device, and getting this error both in my own app and in the provided example app.
It may be worth noting that I'm not using the sample backend. I'm hard-coding the values I'm getting in my own app into the example app.

Steps to Reproduce

  1. Create a RN App or install the example app
  2. Try creating a factor
  3. See the error (if using the example app, it will be displayed in a native alert, otherwise you may need to console.log it using JSON.stringify.

Expected Behavior

Verification factors can be created in iOS devices

Demo Project

I am able to reproduce this issue in the example app.

Versions

  • SDK version: Irrelevant
  • iOS version: 15.2.1
  • Device: iPhone XS
  • IDE version: Irrelevant
  • React native version: 0.64.1 (version in example app).

Log

 [
  "0   RNTwilioVerifyExample               0x000000010084c720 RCTJSErrorFromCodeMessageAndNSError + 116",
  "1   RNTwilioVerifyExample               0x00000001007e83a8 __41-[RCTModuleMethod processMethodSignature]_block_invoke_2.129 + 144",
  "2   RNTwilioVerifyExample               0x0000000100ad93ec $sSo8NSStringCSgACSo7NSErrorCSgIeyByyy_SSSgAGs5Error_pSgIegggg_TR + 320",
  "3   RNTwilioVerifyExample               0x0000000100ad8fd4 $s30twilio_verify_for_react_native14RNTwilioVerifyC12createFactor13factorPayload7resolve6rejectySDyS2SG_yypSgcySSSg_AJs5Error_pSgtctFy06TwilioG3SDK0ogN0OcfU0_ + 444",
  "4   RNTwilioVerifyExample               0x0000000100a8420c $s15TwilioVerifySDK11PushFactoryC12createFactor15withAccessToken12friendlyName04pushJ010serviceSid8identity7success7failureySS_S4SyAA0G0_pcyAA0aB5ErrorOctFys0S0_pcfU0_ + 384",
  "5   RNTwilioVerifyExample               0x0000000100a75478 $s15TwilioVerifySDK14NetworkAdapterC7execute_7success7failurey10Foundation10URLRequestV_yAA8ResponseVcys5Error_pctFys6ResultOyAKsAL_pGcfU0_ + 652",
  "6   RNTwilioVerifyExample               0x0000000100a95040 $sSo12NSURLSessionC15TwilioVerifySDKE8dataTask4with6resultSo0a4DataF0C10Foundation10URLRequestV_ys6ResultOyAC8ResponseVs5Error_pGctFyAI0I0VSg_So13NSURLResponseCSgsAP_pSgtcfU_ + 4328",
  "7   RNTwilioVerifyExample               0x0000000100a953cc $s10Foundation4DataVSgSo13NSURLResponseCSgs5Error_pSgIegggg_So6NSDataCSgAGSo7NSErrorCSgIeyByyy_TR + 240",
  "8   RNTwilioVerifyExample               0x00000001005c8614 __79+[FLEXNetworkObserver asyncCompletionWrapperForRequestID:mechanism:completion:]_block_invoke + 952",
  "9   CFNetwork                           0x0000000181d030ac CFURLRequestSetMainDocumentURL + 3028",
  "10  CFNetwork                           0x0000000181d14054 _CFNetworkErrorCopyLocalizedDescriptionWithHostname + 11444",
  "11  libdispatch.dylib                   0x00000001032e86d4 _dispatch_call_block_and_release + 32",
  "12  libdispatch.dylib                   0x00000001032ea3b4 _dispatch_client_callout + 20",
  "13  libdispatch.dylib                   0x00000001032f2540 _dispatch_lane_serial_drain + 988",
  "14  libdispatch.dylib                   0x00000001032f32c4 _dispatch_lane_invoke + 480",
  "15  libdispatch.dylib                   0x00000001032ffe20 _dispatch_workloop_worker_thread + 916",
  "16  libsystem_pthread.dylib             0x00000001f1f370f4 _pthread_wqthread + 288",
  "17  libsystem_pthread.dylib             0x00000001f1f36e94 start_wqthread + 8"
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions