Hello. I am developing a chat app. when I .get data from the server I have to get this error. I have a check in postman its works perfect but not in code please tell me how to solve this issue Error Domain=NSCocoaErrorDomain Code=3840 JSON text did not start with array or object and option to allow fragments not set. UserInfo={NSDebugDescription=JSON text did not start with array or object and option to allow fragments not set.
Search results for
NSCocoaErrorDomain
1,063 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Greetings! I'm trying to write a simple NSFileProviderExtension in Swift in a simple Single View iOS app with the new Xcode 9 / iOS 11 beta. I used the templates in Xcode to create a Single View universal iOS app in Swift, then added a new File Provider extension using the Xcode template in Swift. Everything builds and runs, but when I try to debug the File Provider extension against the Files app on my iPad Pro device connected to Xcode, I get these errors in the console when I switch to my file provider which shows up in the Locations list in Files:2017-06-10 13:45:02.755981-0700 Files[3040:585145] [default] [ERROR] received an error while enumerating changes: Error Domain=NSCocoaErrorDomain Code=3328 The requested operation couldn’t be completed because the feature is not supported.2017-06-10 13:45:02.756438-0700 Files[3040:585145] [UI] collection(_:didEncounterError:): collection <FPItemCollection:0x1c01b2980 id:NSFileProviderRootContainerItemIdentifier> did encounter error Error Domain=NSCocoaErrorDomain
For this code: let status = try await container.accountStatus() Seeing this error: 2025-05-08 15:32:00.945731-0500 localhost myAgent[2661]: (myDaemon.debug.dylib) [com.myDaemon.cli:networking] Error Domain=CKErrorDomain Code=6 Error connecting to CloudKit daemon. This could happen for many reasons, for example a daemon exit, a device reboot, a race with the connection inactivity monitor, invalid entitlements, and more. Check the logs around this time to investigate the cause of this error. UserInfo={NSLocalizedDescription=Error connecting to CloudKit daemon. This could happen for many reasons, for example a daemon exit, a device reboot, a race with the connection inactivity monitor, invalid entitlements, and more. Check the logs around this time to investigate the cause of this error., CKRetryAfter=5, CKErrorDescription=Error connecting to CloudKit daemon. This could happen for many reasons, for example a daemon exit, a device reboot, a race with the connection inactivity monitor, invalid entitlements, and mo
What is Error Domain=com.apple.photos.error Code=46104 mean? This error appears when I try to create an album on iOS14. case: User first gives AddOnly authorization and then gives ReadWrite authorization. After I get the ReadWrite authorization, create an album. code reference: [[PHPhotoLibrary sharedPhotoLibrary] performChanges:^{ PHAssetCollectionChangeRequest *request = [PHAssetCollectionChangeRequest creationRequestForAssetCollectionWithTitle:albumName] albumPlaceholder = [request placeholderForCreatedAssetCollection]; } completionHandler:^(BOOL success, NSError * _Nullable error) { // success is NO, error is Error Domain=com.apple.photos.error Code=46104 }]; The supplementary log information for the above question is as follows: 2020-08-17 11:28:19.470871+0800 XXXX[4255:1139139] CoreData: XPC: Unable to connect to server with options { NSXPCStoreServerEndpointFactory = ; skipModelCheck = 1;} 2020-08-17 11:28:19.479533+0800 XXXX[4255:1139139] CoreData: XPC: Unable to load metadata: Error Domain=NSCocoaErrorDomain
I've filed this as FB21446798 but figured I'd post here too. In the first build of macOS 26.3, playback via ApplicationMusicPlayer is completely broken. When starting playback of anything at all, the console shows the following error: applicationController: xpc service connection interrupted Failed to obtain remoteObject: Error Domain=NSCocoaErrorDomain Code=4099 The connection to service created from an endpoint was invalidated from this process. UserInfo={NSDebugDescription=The connection to service created from an endpoint was invalidated from this process.} Failed to prepareToPlay with error: Error Domain=MPMusicPlayerControllerErrorDomain Code=10 (null) UserInfo={NSUnderlyingError=0xc92910ff0 {Error Domain=NSCocoaErrorDomain Code=4099 The connection to service created from an endpoint was invalidated from this process. UserInfo={NSDebugDescription=The connection to service created from an endpoint was invalidated from this process.}}} In addition, several crash logs for RemotePlayerServ
When we are resigning the app though MDM and publishing it, then after installation this error is coming as it is failing to retrive device token and following error is giving. Though in app settings we can see there is permission for APNS.Error Domain=NSCocoaErrorDomain Code=3000 no valid 'aps-environment' entitlement string found for application UserInfo=0x17026a840 {NSLocalizedDescription=no valid 'aps-environment' entitlement string found for application}Have anyone faced such problem? Please provide a resolution.
Hello Team,In my current application iMessage is not working fine on Test Flight while it was working fine with AppCentre or hockey build.Please find the Console log for Testflight build whenever I am selecting my app in iMessage.[<private>(<private>)] Hub connection error: Error Domain=NSCocoaErrorDomain Code=4097 connection to service on pid 0 named com.xxxxxx.appname.iMessageExtension UserInfo={NSDebugDescription=connection to service on pid 0 named com.xxxxxx.appname.iMessageExtension}Can you please assist on this?Thanks,
Hey, I am developing Safari Web Extension and trying to communicate with the swift handler (SafariWebExtensionHandler) using runtime.sendNativeMessage api (as describe here - https://developer.apple.com/documentation/safariservices/safari_web_extensions/messaging_between_the_app_and_javascript_in_a_safari_web_extension). I'm getting the following error when calling it - calling runtime.sendNativeMessage(): Error Domain=NSCocoaErrorDomain Code=4099 Couldn’t communicate with a helper application. I have no Idea what is missing and couldn't find any meaningful error message anywhere. I do have nativeMessaging permission in my manifest.json. Assist will be appreciated.
When I use ReplayKit to record screen , I got this:2015-08-27 15:08:52.182 RecordScreen[1118:17373] plugin com.apple.ReplayKit.RPVideoEditorExtension interrupted2015-08-27 15:08:52.182 RecordScreen[1118:17375] Hub connection error Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.apple.ReplayKit.RPVideoEditorExtension UserInfo={NSDebugDescription=connection to service named com.apple.ReplayKit.RPVideoEditorExtension}why that's happened, and how can I fix it ?Thanks a lot~
it can read the files before I replace container in xcode . Has anyone encountered the same problem? and any solution? Error: Error Domain=NSCocoaErrorDomain Code=257 The file “Documents” couldn’t be opened because you don’t have permission to view it. UserInfo={NSUserStringVariant=( Folder ), NSFilePath=/var/mobile/Containers/Data/Application/97D816A0-8B58-4E33-8455-3F19E0A9FBAA/Documents, NSUnderlyingError=0x281e650b0 {Error Domain=NSPOSIXErrorDomain Code=13 Permission denied}}
Topic:
App & System Services
SubTopic:
Core OS
Tags:
Files and Storage
iOS
Xcode Cloud
Organizer Window
HiAm having problems creating an EKEventStore to access the calendars.To simplify the problem I created an OS X project in swift 4 with one button on the view. In the View controller I have imported EventKit. There is an @IBAction, as shown below, linked to the button. The sandbox is on with access to calendar checked.@IBAction func testEK(_ sender: Any) { let eventStore = EKEventStore.init()}When the button is clicked the following appears in the debug console area2018-11-13 19:19:56.985235+0000 EKTest[6916:407014] CoreData: XPC: Unable to load metadata: Error Domain=NSCocoaErrorDomain Code=134070 An error occurred in the persistent store. UserInfo={Problem=request failed, insufficient permission}2018-11-13 19:19:56.985845+0000 EKTest[6916:407014] [error] error: -addPersistentStoreWithType:NSXPCStore configuration:(null) URL:file:///Users/jimgraham/Library/Calendars/Calendar%20Cache options:{ NSInferMappingModelAutomaticallyOption = 1; NSMigratePersistentStoresAutomaticallyOption = 1; NSPersistentHi
I get the following error when I try and run the app on my watch:Error Domain=NSCocoaErrorDomain Code=256 The file “GetPic.php” couldn’t be opened. UserInfo={NSURL=https://website.com/GetPic.php}The actual line of code is:let URL: String = try String(contentsOfURL: NSURL(string: https://website.com/GetPic.php)!)This works fine in xcode. I updated to xCode 7.1 and am running the latest watchos version. Any ideas how to fix this?Thanks
use JSONDecoder().decodeto parse data{aaa: value, bbb: 1}it generated error:Unexpected error: dataCorrupted(Swift.DecodingError.Context(codingPath: [], debugDescription: The given data was not valid JSON., underlyingError: Optional(Error Domain=NSCocoaErrorDomain Code=3840 No string key for value in object around character 1. UserInfo={NSDebugDescription=No string key for value in object around character 1.}))).why?
Hi, in my Extension FilterDataProvider class that is inherited from NEFilterDataProvider i am trying to insert logs into my CoreData entity, but when i insert it gives me error NSCocoaErrorDomain: -513 reason: Unable to write to file opened Readonly Any suggestions please to update the read write permission i already have tried this way but no luck let description = NSPersistentStoreDescription(url: storeURL) description.shouldInferMappingModelAutomatically = true description.shouldMigrateStoreAutomatically = true description.setOption(false as NSNumber, forKey: NSReadOnlyPersistentStoreOption) ?
I use the iTunes Library framework in one of my apps, starting with macOS Sequoia 15.1 i can't create the ITLibrary object anymore with the following error: Connection to amplibraryd was interrupted. clientName:iTunesLibrary(ITLibraryLoader) Error connecting to the server via proxy object Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.apple.amp.library.framework UserInfo={NSDebugDescription=connection to service named com.apple.amp.library.framework} configure failed: Error Domain=NSCocoaErrorDomain Code=4097 connection to service named com.apple.amp.library.framework UserInfo={NSDebugDescription=connection to service named com.apple.amp.library.framework} I created a new sandboxed macOS app, added the music folder read permission and it reproduced the error: import SwiftUI import iTunesLibrary @main struct ITLibraryLoaderApp: App { var body: some Scene { WindowGroup { ContentView() } } } struct ContentView: View { var body: some View { Button(Load ITLibrary) { loa