UserService.handleOpenUrl: cannot open url for user with an auto-load related object (iOS)

I perform login via easyLoginWithTwitterFieldsMapping. In AppDelegate.handleOpenUrl method UserService.handleUrl gets called.
When I try to login as a user, who has a related object ( which is marked as auto-load field ), I get the following error:
UserService -> handleOpenURL: ERROR = Error Domain=NSCocoaErrorDomain Code=3840 “Unescaped control character around character 880.” UserInfo={NSDebugDescription=Unescaped control character around character 880.}
The url, which handleOpenURL method tries to open, has the representation of this user and it contains the related object’s representation, too. The problem symbol is somewhere in the objectId of the related object. According to the error message, an unescaped control character is around “-F” in 08C09010-21F8-7200-FF13-0C4F2F5A1300.
If I remove mark “auto-load” for the related object in the console, everything is ok.
I can provide a full url, if it is neccessary.
The SDK version is 3.0.22.
Thanks in advance!

Hi Elena,

Please provide the full URL.

Hi, Sergey

The full URL:

backendless33F3170D-5404-FA20-FF66-342EFD174000://%7B%22lastLogin%22:%22Mon%20May%2016%2007:32:09%20UTC%202016%22,%22authData%22:null,%22avatarURL%22:%22http://pbs.twimg.com/profile_images/540633990219456512/z-GbleTS_normal.jpeg%22,%22created%22:%22Tue%20Mar%2001%2008:38:41%20UTC%202016%22,%22ownerId%22:null,%22socialNetworkType%22:%22twitter%22,%22__meta%22:%22%7B%5C%22relationRemovalIds%5C%22:%7B%7D,%5C%22selectedProperties%5C%22:%5B%5C%22authData%5C%22,%5C%22avatarURL%5C%22,%5C%22created%5C%22,%5C%22ownerId%5C%22,%5C%22socialNetworkType%5C%22,%5C%22__updated__meta%5C%22,%5C%22password%5C%22,%5C%22favoriteFeed%5C%22,%5C%22id_str%5C%22,%5C%22name%5C%22,%5C%22___class%5C%22,%5C%22updated%5C%22,%5C%22email%5C%22,%5C%22objectId%5C%22,%5C%22username%5C%22,%5C%22placeholderImage%5C%22%5D,%5C%22relatedObjects%5C%22:%7B%5C%22favoriteFeed%5C%22:%5B%5C%2208C09010-21F8-7200-FF13-0C4F2F5A1300%5C%22%5D%7D%7D%22,%22favoriteFeed%22:%7B%22summary%22:%22%22,%22identifier%22:%22x-coredata:///FeedEntity/tDBACAB94-16D5-43E9-B032-67F20F4A2D20492%22,%22color%22:%22#8BC34A%22,%22kind%22:%22favorite%22,%22created%22:%22Tue%20May%2010%2014:54:11%20UTC%202016%22,%22majorLangCode%22:%22RU%22,%22icon%22:%22%22,%22link%22:%22%22,%22ownerId%22:null,%22belongsToApplifto%22:1,%22title%22:%22%1871@0==%3E5%22,%22sortIdentifier%22:0,%22adInterstitialUnitShowInterval%22:0,%22shouldBeDeleted%22:0,%22name%22:null,%22___class%22:%22Feed%22,%22logo%22:%22%22,%22iconBase64%22:%22iVBORw0KGgoAAAANSUhEUgAAAFoAAABaCAMAAAAPdrEwAAABd1BMVEUAAAAA//8AgP8Aqv8AgP8Amf8AgP8Akv8AgP8Ajv8Ai/8AgP8AgP8AgP8Ah/8AgP8Ahv8Aev8AgP8Ae/8AgP8AgP8AfP8AfP8AgP8Aff8Aff8Aev8Aff8Ae/8Ae/8Aff8Ae/8Aff8AfP8AfP8Afv8Afv8Aev8AfP8Ae/8AfP8Ae/8Ae/8AfP8Ae/8Aff8Ae/8Aff8Ae/8Aff8Ae/8Ae/8Aev8AfP8Ae/8AfP8Ae/8AfP8Ae/8Ae/8AfP8Ae/8Aev8Ae/8Ae/8Ae/8Aev8Ae/8Ae/8Aev8Ae/8Aev8Ae/8Ae/8AfP8Ae/8Aev8Ae/8Ae/8Aev8Ae/8Aev8Ae/8Ae/8Ae/8Ae/8Ae/8Aev8Ae/8Aev8Ae/8Aev8Ae/8Aev8Aev8Ae/8Ae/8Ae/8Ae/8Ae/8Ae/8Ae/8Aev8Ae/8Ae/8Aev8Ae/8Aev8Ae/8Aev8Ae/8Aev8Aev8Ae/8Aev8Aev8Aev8Ae/8Aev8Ae/8Ae/8Aev8Ae/8Aev+vJaU1AAAAfHRSTlMAAQIDBAUGBwgJCwwOEBEUFRkaGxwiIyUqKy8yMzQ4OTw9QEJDRUdOT1BRU1RVVldaW1xdX2JjZmdoaWpwcXR1dn6FjI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RCKR+I/5F5AJT8i8N87iAAAAAElFTkSuQmCC%22,%22updated%22:%22Tue%20May%2010%2014:58:44%20UTC%202016%22,%22objectId%22:%2208C09010-21F8-7200-FF13-0C4F2F5A1300%22%7D,%22id_str%22:null,%22name%22:%22Lego%22,%22___class%22:%22Users%22,%22user-token%22:%22E8FC93C0-2D77-B1AC-FFC0-22F5BB9C2500%22,%22updated%22:%22Fri%20May%2013%2007:47:43%20UTC%202016%22,%22email%22:%222241114215%22,%22objectId%22:%226AEA2FFF-4EB3-5794-FFC1-F8ABEDA08F00%22,%22username%22:null,%22placeholderImage%22:null%7D

Hi Elena,

The problem symbol is in “title” property of favoriteFeed related object :

%22title%22:%22%1871@0==%3E5%22,

Please remove it.

Regards,
Slava

Hi Vyacheslav,

So, as far as I understand, an incorrect encoding caused this issue - the type of this field is String and it contains cyrillic symbols. What encoding should I use to store String values?

Thank you

You could use NSUTF8StringEncoding or NSUTF16StringEncoding.

Thank you. It’s working now