I have no idea why this is happening.
I am using v2.1 of httpjob and httputils2service.
I call
If I put a breakpoint there and step through line by line it works every time, and comes back to my jobdone event.
If I do not have a breakpoint, if fails ALMOST every time (when it doesn't the jobdone event isn't fired, but doesn't error). Error follows.
I am using v2.1 of httpjob and httputils2service.
I call
B4X:
Dim j As HttpJob
If j.IsInitialized = False Then
j.Initialize("SecReq", Me)
End If
j.PutFile("http://centers.bubblergps.com/api/user", Main.MyFilePath, "tempsec.json")
If I put a breakpoint there and step through line by line it works every time, and comes back to my jobdone event.
If I do not have a breakpoint, if fails ALMOST every time (when it doesn't the jobdone event isn't fired, but doesn't error). Error follows.
Error response: , status code: 415
Error occurred on line: 27 (HttpUtils2Service)
*** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[3]
Stack Trace: (
CoreFoundation <redacted> + 150
libobjc.A.dylib objc_exception_throw + 38
CoreFoundation <redacted> + 292
CoreFoundation <redacted> + 44
Centers -[b4i_httputils2service _completejob::::] + 514
Centers -[b4i_httputils2service _hc_responseerror::::] + 1670
CoreFoundation <redacted> + 68
CoreFoundation <redacted> + 292
Centers +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1786
Centers -[B4IShell runMethod:] + 574
Centers -[B4IShell raiseEventImpl:method:args::] + 2212
Centers -[B4IShellBI raiseEvent:eventarams:] + 1340
Centers __50-[B4I raiseEventFromDifferentThread:eventarams:]_block_invoke + 74
libdispatch.dylib <redacted> + 10
libdispatch.dylib <redacted> + 22
libdispatch.dylib <redacted> + 1524
CoreFoundation <redacted> + 8
CoreFoundation <redacted> + 1574
CoreFoundation CFRunLoopRunSpecific + 520
CoreFoundation CFRunLoopRunInMode + 108