error.faultCode is nil during registration

When I register without internet connection

backendless.userService registering:user response:^(BackendlessUser *regUser) {

NSLog(@“success registration for user = %@”, [regUser getProperty:kB_user_username]);
successBlock(regUser);

} error:^(Fault *error) {
NSLog(@“fail registration message = %@, details = %@, errorCode = %@”, error.message, error.detail, error.faultCode);

failBlock(error);
}];

It enters the fail block and the Error code is nil, so I can’t know that the problem happened because of internet connections problems.

Hi Pavel,

Thank you for reporting the problem. We’re looking into it.

Regards,
Mark

and error.message is in English, but error.detail are in Russian language (language one the device is English)

Contents of “error.detail” are always localized to the device’s locale. If your iPhone/iPad are localized to Russian, that’s the language you will get the error in.

The problem has been fixed. Please download the latest build (v1.10) from our site.

Regards,
Mark

No in

NSLog(@“fail registration message = %@, details = %@, errorCode = %@”, error.message, error.detail, error.faultCode);

it still says registration message = NSURLErrorDomain, details = Вероятно, соединение с Интернетом прервано., errorCode =
so faultCode is still nil

We’ve fixed this bug for async calls - you can get the lastest actual libs build from our github repos - https://github.com/Backendless/ios-SDK or https://github.com/Backendless/iOS-Samples

Enjoy!

Thank you for fixing, but right now the faultCode is “-1009” (with minus sign).
Will the error code be the same for all the errors for no internet connection?

Negative error codes come from the Mac OS frameworks. Most, but not all, Mac OS error codes can be found in a C header file named MacErrors.h. This file is most likely at/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/Headers/MacErrors.h.
Positive error codes are usually BSD error codes. A list of these codes along with cryptic descriptions can be found in a C header file named errno.h. There are usually several files with this name on a Mac OS system; the one you want is probably /usr/include/sys/errno.h.

Also about an error number you can see in section “URL Loading System Error Codes” of Apple’s “Foudation Constants Reference” guide: https://developer.apple.com/library/ios/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_Constants/Reference/reference.html

ok, thank you