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: AOSKit ERROR: (-) RAF: Invalid url -- https://USERNAMEfirstname.lastname@example.org/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://USERNAMEemail@example.com/calendar/dav/USERNAME%40gmail.com/, but what Google API accepts is
https://USERNAME@calendar.google.com/calendar/dav/USERNAME%40gmail.com/. That is the reason the Invalid URL error happens.
- Disable Calendar & Reminders under System Preferences -> Mail, Contacts & Calendars;
- 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:
That’s it and the error should be gone! Please feel free to post any comments. :-)