10 Replies Latest reply: Dec 23, 2012 11:11 PM by planetgazer
Wet Jimmy Level 1 Level 1 (5 points)

Hi all,

 

As soon as I upgraded to Mountain Lion, I am receiving the following error whenever Contacts application tried to sync with iCloud.

 

-

 

[NSInvalidArgumentException] The value for 'host' should be non-nil and non-empty

 

-

 

Has anyone else experienced this problem / does anyone have a solution?  This worked just fine under Lion.

 

 

Hardware Overview:

 

  Model Name:          MacBook Pro

  Model Identifier:          MacBookPro10,1

  Processor Name:          Intel Core i7

  Processor Speed:          2.7 GHz

  Number of Processors:          1

  Total Number of Cores:          4

  L2 Cache (per Core):          256 KB

  L3 Cache:          8 MB

  Memory:          16 GB

  Boot ROM Version:          MBP101.00EE.B00

  SMC Version (system):          2.3f28

  • Wet Jimmy Level 1 Level 1 (5 points)

    Update - once I signed out of iCloud and back in, the error is now;


    The operation couldn't be completed. (CoreDAVErrorDomain error 1.)


  • capierce Level 1 Level 1 (0 points)

    I had a similar problem after first updating. Following the instructions in this link worked for me. Click on the section titled: "For issues syncing contacts and contact groups in Address Book", and follow the Lion instructions:

     

    http://support.apple.com/kb/TS2481

  • Wet Jimmy Level 1 Level 1 (5 points)

    Thanks for the suggest capierce, however this did not resolve the problem for me.

     

    Just in case it's of assistance, here is a relevant console log;

     

    -----

     

    26/07/12 11:03:25.375 PM Contacts[796]: [CardDAVPlugin-ERROR] -_handleAddsOrModifies: exception processing addsOrModifies The value for 'host' should be non-nil and non-empty

    26/07/12 11:03:25.377 PM Contacts[796]: [CardDAVPlugin-ERROR] Error in _handleAddsOrModifies:removes:inFolderWithURL: The value for 'host' should be non-nil and non-empty

    26/07/12 11:03:25.378 PM Contacts[796]: [CardDAVPlugin-ERROR] -_handleAddsOrModifie "MY EMAIL"@p04-contacts.icloud.com/32071570/carddavhome/card/ Error Domain=CoreDAVErrorDomain Code=1 "The operation couldn’t be completed. (CoreDAVErrorDomain error 1.)"

    26/07/12 11:03:25.823 PM Contacts[796]: [MIGRATION] ### ------ SUMMARY ------ ###

    26/07/12 11:03:25.826 PM Contacts[796]: [MIGRATION] ### Local People: 107 ###

    26/07/12 11:03:25.828 PM Contacts[796]: [MIGRATION] ### Local Groups: 0 ###

    26/07/12 11:03:25.829 PM Contacts[796]: [MIGRATION] ### Server People: 0 ###

    26/07/12 11:03:25.830 PM Contacts[796]: [MIGRATION] ### Server Groups: 0 ###

    26/07/12 11:03:25.832 PM Contacts[796]: [MIGRATION] ### Merged People: 0 ###

    26/07/12 11:03:25.833 PM Contacts[796]: [MIGRATION] ### Merged Groups: 0 ###

    26/07/12 11:03:25.834 PM Contacts[796]: [MIGRATION] ### Removed People: 0 ###

    26/07/12 11:03:25.836 PM Contacts[796]: [MIGRATION] ### Removed Groups: 0 ###

    26/07/12 11:03:25.837 PM Contacts[796]: [MIGRATION] ### Local People Upload: 107 ###

    26/07/12 11:03:25.838 PM Contacts[796]: [MIGRATION] ### Local Groups Upload: 0 ###

    26/07/12 11:03:25.839 PM Contacts[796]: [MIGRATION] ### --------------------- ###

    26/07/12 11:03:25.841 PM Contacts[796]: [MIGRATION] ### DOWNLOAD ERROR Error Domain=CoreDAVErrorDomain Code=1 "The operation couldn’t be completed. (CoreDAVErrorDomain error 1.)", exiting ###

    26/07/12 11:03:25.844 PM Contacts[796]: [MIGRATION] ### EXCEPTION Error Domain=CoreDAVErrorDomain Code=1 "The operation couldn’t be completed. (CoreDAVErrorDomain error 1.)", exiting ###

    26/07/12 11:03:25.844 PM Contacts[796]: [CardDAVPlugin-ERROR] Exception caught while running sync with server: Error Domain=CoreDAVErrorDomain Code=1 "The operation couldn’t be completed. (CoreDAVErrorDomain error 1.)"

    26/07/12 11:03:28.268 PM WindowServer[108]: CGXSetWindowListAlpha: Invalid window 0

    26/07/12 11:03:29.269 PM Dock[273]: CGSReleaseWindowList: called with 3 invalid window(s)

    26/07/12 11:03:33.000 PM kernel[0]: considerRebuildOfPrelinkedKernel prebuild rebuild has expired

  • roby66 Level 1 Level 1 (0 points)

    [NSInvalidArgumentException] The value for 'host' should be non-nil and non-empty

     

    also i have the same problem...

     

    HELP APPLE...

  • Wet Jimmy Level 1 Level 1 (5 points)

    I'm happy to say I've solved this problem.  But it was a pain...

     

    1. I downgraded to Lion 10.7.4 so that contacts would sync again.

     

    2. Run the Remove Duplicates option in Address Book a bunch of times until no duplciates were found.

     

    3. Log in to iCloud website, and back up my contacts to a vcard file.

     

    4. Deleted ALL of my contacts via the iCloud website.

     

    5. Upgrade to Mountain LIon.

     

    6. Create a test contact and confirm sync.

     

    7. Import vcard backup of contacts.

     

    8. YAY! Everything was syncing again, no problems.

     

    I hope this helps someone else.

  • plegault Level 1 Level 1 (0 points)

    Downgrading to 10.7 isn't really a possiblity.  Anybody else got a solution for this?

  • plegault Level 1 Level 1 (0 points)

    Actually the error message is very misleading.

     

    What I did is the following:

     

    Go on icloud.com, export all my contacts to VCard.

     

    Delete all my contacts on iCloud.com

     

    Re-import all my contacts from the vCard in step 1.

     

    It seems that the error isnt caused by a connection error with the server, but rather by a misbehaving contact in your list.

     

    The sync works afterwards.

  • HotMark Level 1 Level 1 (0 points)

    Do you loose your groups though?

  • jayfromhousatonic Level 1 Level 1 (0 points)

    I don't know about loosing the groups but

     

    IT WORKED LIKE A CHARM!

     

    thanks guys!

  • planetgazer Level 1 Level 1 (10 points)

    Thanks capierce! It took a little time but it was well worth it. The process is basically to back up your contacts after elimating duplicates, turning off certain services using a couple of terminal commands, deleting all contacts, turning the services back on, and copying the contacts back in. Follow the directions in the support article carefully. I sync through icloud so I also had to turn icloud back on in contacts preferences. Now my contacts on two macs, icloud, and my iphone are all synced up. Can't fix the world but I fixed my contact lists and that's a start!