I
use httputils2 to communicate with the server When job_done goes to the job.string or job.string2 line, the program gives an error and closes Error image attached
B4X:
Sub JobDone(job As HttpJob)
If job.Success Then
Log(job.GetString)
json.Initialize(job.GetString)
End if
End Sub
B4X:
-
Error occurred on line: 289 (HttpJob)
-[b4i_encoding lowercaseStringWithLocale:]: unrecognized selector sent to instance 0x6000018e6280
Stack Trace: (
CoreFoundation __exceptionPreprocess + 242
libobjc.A.dylib objc_exception_throw + 48
CoreFoundation +[NSObject(NSObject) instanceMethodSignatureForSelector:] + 0
CoreFoundation ___forwarding___ + 1455
CoreFoundation _CF_forwarding_prep_0 + 120
Alshams +[B4ICommon getEncoding:] + 105
Alshams -[B4ICommon BytesToString::::] + 118
Alshams -[B4IHttpResponse GetString2:] + 249
Alshams -[b4i_httpjob _getstring2::] + 528
CoreFoundation __invoking___ + 140
CoreFoundation -[NSInvocation invoke] + 305
Alshams +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1650
Alshams -[B4IShell runMethod:] + 401
Alshams -[B4IShell raiseEventImpl:method:args::] + 2361
Alshams -[B4IShellBI raiseEvent:event:params:] + 1357
Alshams +[B4IDebug delegate:::] + 72
Alshams -[b4i_httpjob _getstring2::] + 360
Alshams -[b4i_httpjob _getstring:] + 347
CoreFoundation __invoking___ + 140
CoreFoundation -[NSInvocation invoke] + 305
Alshams +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1650
Alshams -[B4IShell runMethod:] + 401
Alshams -[B4IShell raiseEventImpl:method:args::] + 2361
Alshams -[B4IShellBI raiseEvent:event:params:] + 1357
Alshams -[B4ICommon CallSub4::::] + 316
Alshams -[B4ICommon CallSub2::::] + 326
Alshams -[b4i_httpjob _complete::] + 781
Alshams -[b4i_httputils2service _completejob::::] + 1668
Alshams -[b4i_httputils2service _hc_responsesuccess::] + 538
CoreFoundation __invoking___ + 140
CoreFoundation -[NSInvocation invoke] + 305
Alshams +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1650
Alshams -[B4IShell runMethod:] + 401
Alshams -[B4IShell raiseEventImpl:method:args::] + 2361
Alshams -[B4IShellBI raiseEvent:event:params:] + 1357
Alshams __61-[B4IHttp URLSession:downloadTask:didFinishDownloadingToURL:]_block_invoke + 304
libdispatch.dylib _dispatch_client_callout + 8
libdispatch.dylib _dispatch_async_and_wait_invoke + 109
libdispatch.dylib _dispatch_client_callout + 8
libdispatch.dylib _dispatch_main_queue_callback_4CF + 1045
CoreFoundation __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
CoreFoundation __CFRunLoopRun + 2781
CoreFoundation CFRunLoopRunSpecific + 567
GraphicsServices GSEventRunModal + 139
UIKitCore -[UIApplication _run] + 912
UIKitCore UIApplicationMain + 101
Alshams main + 112
libdyld.dylib start + 1
??? 0x0 + 1
)
Attachments
Last edited: