Fix Invalid URL to Google Calendar in Mountain Lion

If you are much annoyed, I believe you are if you landed this page by Googling, by tenths or even hundreds error messages in Console of 28/5/13 10:25:41.004 PM CalendarAgent[169]: AOSKit ERROR: (-) RAF: Invalid url -- https:[email protected]/calendar/dav/USERNAME%40gmail.com/ you might take a minute to read this post.

###The Cause: Apple is the one to blame When we use System Preferences -> Mail, Contacts & Calendars to add our google accounts, and enable Calendar & Reminders Apple sets the CalDAV url to https:[email protected]/calendar/dav/USERNAME%40gmail.com/, but what Google API accepts is https:[email protected]/calendar/dav/USERNAME%40gmail.com/. That is the reason the Invalid URL error happens. ###The Solution

  1. Disable Calendar & Reminders under System Preferences -> Mail, Contacts & Calendars;
  2. Open Calendar and add a account in Preferences -> Accounts: select Account Type to be CalDAV, input your Google USERNAME(without @google.com), and password; and Server Address as: https://www.google.com/calendar/dav/USERNAME@gmail.com/user

That’s it and the error should be gone! Please feel free to post any comments. :-)