-
-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error "Incorrect ics/ical URL" syncing an outlook calendar #388
Comments
Same here, seems that fetching the ics url timed out, which leads into removal of all existing calendar entries. Would it be possible to check whether the content is empty to give it a retry? Putting that URL into a browser to download the ics manually take a while, so I assume it's just a timeout issue. Line 74 in 9990d1b
|
I was experiencing the same issue separately, and was able to analyze the problem and come up with a solution. Please refer to the information below. The underlying issueMicrosoft Outlook/365's calendar share is outputting ICS files that are incompliant to ICS standards. The specific issues that affect GAS-ICS-Sync are as follows:
How to fixThis issue can be resolved by fixing the ICS file to comply to ICS standards before parsing.
Final thoughtsThe code above is a very crude attempt to fix this issue; this does solve the sync issue, but please add a comment below if you have a more elegant solution. It is unclear as to why this issue suddenly appeared. Did Microsoft Outlook/365 suddenly began writing ICS file incorrectly? Is there something wrong on the parser side? I would appreciate any details and discussions below. |
As for the issue of all existing calendar entries being removed, you may want to implement some changes in the code to prevent this from happenig. The issue below provides a solution you can use. |
thanks, the fix worked. Is this an Office365 error? Some calendars take longer to download the ics file? |
Yes, this is a bug in the latest Outlook version. See #386 for more. @Kucladell Thanks for your solution, I have not had time to thoroughly test this, just 2 quick inputs:
|
@konraddecker Glad to be able to help! Thank you as well for confirming that the fix indeed works. @jonas0b1011001 Thank you for the detailed input! I am not well versed in Javascript (and programming in general) so I deeply appreciate your feedback. As for the points you raised:
(Edit: A better solution is proposed, so removed comments on improving my code.) |
@jonas0b1011001 I see that you proposed a more elegant solution at #386 . I suggest you go ahead with this! |
Just logged in to say thanks for @Kucladell for the fix. It was driving me crazy |
@arcegabriel Thank you for the kind words! A more elegant solution is coming up soon by @jonas0b1011001, but glad to be able to help in the meantime. This is the first time I shared my code to someone else so this means a lot to me. |
Closing via #386 . Release with the fix coming shortly |
My syncing started doing this sometime before I got up for the day, but by mid-morning it started working again! Not sure what microsoft is doing, but I'm very glad there may be a solution I should implement when it happens again. Thank you! |
The problem
Unfortunately the sync stopped working for me recently.
The following error is displayed in the console (see Screenshot)
I have already recreated the Outlook calendar share and generated new links. Unfortunately it does not work.
is this bug known? Is there a fix for this?
Version of GAS-ICS-Sync
5.7
Additional information & file uploads
No response
The text was updated successfully, but these errors were encountered: