I can't download iCloud calendar anymore

I had a bat file that downloaded my iCloud calendar every hour. the link used was found via the iCloud website (calendar is publicly available). It has a webcal: // url, but according to Apple support, you should change that to http.

Using chrome explorer this file won't load. In Chrome: {"reason": "Invalid or missing Origin header", "error": 1} In Explorer: The file seems to run, but then it says "Unable to load ..."

My bat file:

@echo off
powershell -Command "(New-Object Net.WebClient).DownloadFile('http://p20-calendarws.icloud.com/ca/subscribe/1/...', 'D:\Backup\cal.ics')"
pause

      

The above code gives me:

Exception throws "download file" with arguments "2": The remote server returned an error: 421 invalid requested request.

It worked great, but now it doesn't seem like it anymore.

Any thoughts? Does anyone else do something similar?

Tried replacing http with https but no luck. Searching if iCloud made some changes did not produce any results.

+3


source to share


2 answers


I found a solution to this problem that worked for me.

I had calendars with an error



{"reason": "Invalid or missing title title", "error": 1}

and some don't. Then I noticed that the ones I could download without problems started with "webcal: // p05-", while those that had the error started with "webcal: // p45-". So I just turned off the open calendar and clicked OK before re-selecting the calendar and ticking Shared Calendar. If this generates a URL starting with "webcal: // p45-", copy it to your browser and try downloading it, if not, try again until you get the correct URL.

+1


source


Have you recently enabled Apple Two-Factor Authentication? I was getting the same error as when trying to access Apple's public calendar from someone's account - it worked fine and then started giving "invalid or missing title title". I had this person turn off two-factor authentication and then I restored the Open Calendar link (using iCloud.com) and now it works fine. Considering that one of Apple's latest updates did start pushing two-factor authentication, it may have been enabled without fully realizing it (my mom managed to enable it and didn't even know what it was when I asked her about it).



John

+2


source







All Articles