Date Parsing Exception

The issue is right here. The api returns the time intervals as Strings, not TimeIntervals (which is a number) so that the function you are using to convert it into date timeIntervalSinceReferenceDate to work.

Full stacktrace:

0   ???                                 0x000000010b50b420 0x0 + 4484805664
1   ???                                 0x000000010b50b7c7 0x0 + 4484806599
2   Tipple                              0x0000000106899e10 main + 0
3   CoreFoundation                      0x00007fff20426036 ___forwarding___ + 1489
4   CoreFoundation                      0x00007fff20428068 _CF_forwarding_prep_0 + 120
5   libswiftFoundation.dylib            0x0000000108db118a $s10Foundation4DateV36_unconditionallyBridgeFromObjectiveCyACSo6NSDateCSgFZ + 26
6   Tipple                              0x00000001067e52c2 $s6Tipple7CountryC7updated10Foundation4DateVSgvsTo + 194
7   Foundation                          0x00007fff207abfca -[NSObject(NSKeyValueCoding) setValue:forKey:] + 325
8   Tipple                              0x0000000106bb9d2f $s8SwiftSDK17PersistenceHelperC18dictionaryToEntity_9classNameypSgSDySSypG_SStF + 10191
9   Tipple                              0x0000000106cb700b $s8SwiftSDK15BackendlessUserC10propertiesSDySSypGvg + 1787
10  Tipple                              0x00000001066faed1 $s8SwiftSDK15BackendlessUserC6TippleE5ownerSbvg + 97
11  Tipple                              0x00000001066fae3b $s8SwiftSDK15BackendlessUserC6TippleE5ownerSbvgTo + 43
12  Tipple                              0x00000001067b391f $s6Tipple0A3APIC8findUser8objectId15responseHandler05errorH0ySS_y8SwiftSDK011BackendlessD0CSgcSgyAH5FaultCcSgtFyypSgcfU_ + 543
13  Tipple                              0x0000000106aecf98 $s8SwiftSDK13CustomServiceC21processInvokeResponse33_B92BF30409B861626B742E1C8C689D0BLL8response0P7Handler05errorQ0yAA08ReturnedG0C_yypSgcSgyAA5FaultCcSgtF + 2264
14  Tipple                              0x0000000106aec6b6 $s8SwiftSDK13CustomServiceC06invokeD033_B92BF30409B861626B742E1C8C689D0BLL11serviceName6method10parameters13executionType15responseHandler05errorU0ySS_SSypSgAA09ExecutionS0OSgyALcSgyAA5FaultCcSgtFyAA16ReturnedResponseCcfU0_ + 86
15  Tipple                              0x0000000106adbe52 $s8SwiftSDK25BackendlessRequestManagerC04makeD011getResponseyyAA08ReturnedH0Cc_tFy10Foundation4DataVSg_So13NSURLResponseCSgs5Error_pSgtcfU_ + 962
16  Tipple                              0x0000000106adbfa8 $s10Foundation4DataVSgSo13NSURLResponseCSgs5Error_pSgIegggg_So6NSDataCSgAGSo7NSErrorCSgIeyByyy_TR + 296
17  CFNetwork                           0x00007fff2351b6ca CFNetwork + 34506
18  CFNetwork                           0x00007fff2352f992 _CFHTTPMessageSetResponseProxyURL + 17344
19  libdispatch.dylib                   0x00000001091547ec _dispatch_call_block_and_release + 12
20  libdispatch.dylib                   0x00000001091559c8 _dispatch_client_callout + 8
21  libdispatch.dylib                   0x0000000109163e75 _dispatch_main_queue_callback_4CF + 1152
22  CoreFoundation                      0x00007fff2038fdbb __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
23  CoreFoundation                      0x00007fff2038a63e __CFRunLoopRun + 2685
24  CoreFoundation                      0x00007fff203896d6 CFRunLoopRunSpecific + 567
25  GraphicsServices                    0x00007fff2c257db3 GSEventRunModal + 139
26  UIKitCore                           0x00007fff24696cf7 -[UIApplication _run] + 912
27  UIKitCore                           0x00007fff2469bba8 UIApplicationMain + 101
28  Tipple                              0x0000000106899e5b main + 75
29  libdyld.dylib                       0x00007fff2025a3e9 start + 1
0 elements

Could you please specify what operation in your API service we can invoke to see the response? If there are any arguments for the invocation, let us know the values too.

Thanks,
Mark

Backendless.shared.customService.invoke(serviceName: "TippleAPI", method: "fetchUserData", parameters: parameters, responseHandler: responseHandler, errorHandler: errorHandler)

Getting this response:

{
    "code": 1000,
    "message": "User Not Logged In!",
    "errorData": {}
}

What account can we login with?

In your SDK, PersistanceHelper class, valueToSpecificType() function, there is a code handling the exact issue and its commented.

    // BKNDLSS-21285
    /*else if valueType.contains("NSDate"), value is String {
        let intValue = Int(value as! String)
        return DataTypesUtils.shared.intToDate(intVal: intValue!)
    }*/

I havent wrote the API, but my understanding is that the user object id is known from the api headers (Context ID).
if you need a user object id: 15E5C6A3-B854-4265-BC61-4F4EBBDAF147

I do not know the password for that user since Backendless console doesn’t display passwords. I can assign one, but I am afraid the user account is used for something else. Let me know if I can change the password or you’ll create another user account for us.

@Adrian_Ispas , @Reece_Smith could you please check now?

The issue seems to be fixed. Thank you

Thanks for fixing guys. Please can we ensure appropriate controls are in place to stop this happening again.

Appreciate you all jumping on.

Hello @Reece_Smith,

thank you for your patience. It is very hard to guaranty full compatibility from version to version. We have thousands of functionality tests and still, regressions happen. Sometimes it is just not possible to release a new feature or critical bug and do not break backward compatibility. In this case, we notify developers beforehand. If you require 100% code stability you may consider using Backendless Managed or Backendless PRO version. In this case, we do not upgrade the server without coordination with you.