APNS :Erreur de Domaine = NSCocoaErrorDomain Code=3840

Im enregistrement des données de l'appareil avec le serveur, pour obtenir de notification push. Ici, il va le code,

[NSURLConnection sendAsynchronousRequest: request
                                           queue: _postQueue
                               completionHandler: ^(NSURLResponse *response, NSData *responseData, NSError *connectionError) {
                                   if (connectionError) {
                                       //
                                   } else {
                                      NSError *error = nil;
        NSDictionary *dictionary = [NSJSONSerialization JSONObjectWithData: responseData options: NSJSONReadingMutableContainers error: &error];
                                   }
                               }];

Im avoir d'erreur comme

Error Domain=NSCocoaErrorDomain Code=3840 "The operation couldn’t be completed. (Cocoa error 3840.)" (JSON text did not start with array or object and option to allow fragments not set.) UserInfo=0x17057f60 {NSDebugDescription=JSON text did not start with array or object and option to allow fragments not set.}

Quelqu'un peut s'il vous plaît aider à résoudre le problème?

InformationsquelleAutor rishu1992 | 2015-01-13