Skip to content
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

'Invalid start time' error from calendar.events.update #315

Open
alexnb98 opened this issue Feb 20, 2023 · 11 comments
Open

'Invalid start time' error from calendar.events.update #315

alexnb98 opened this issue Feb 20, 2023 · 11 comments
Labels
bug Something isn't working can't reproduce Developers are unable to reproduce the issue help wanted Extra attention is needed

Comments

@alexnb98
Copy link

About last week ago the script stopped syncing my events from my outlook calendar to google calendar. Before that it worked perfectly for 1 and half years (thanks for that!).

image

Did something change in the API? What can I do?

@alexnb98 alexnb98 added the bug Something isn't working label Feb 20, 2023
@IssueHuntBot
Copy link

@alexnb98 has funded $10.00 to this issue.


@derekantrican
Copy link
Owner

@alexnb98 - is this consistently failing? Can you share your ICS file?

@alexnb98
Copy link
Author

Yes, it's consistenly failing since 2 weeks. Here is the ICS file, I removed all private information: https://pastebin.com/24DNY3yL

@jonas0b1011001
Copy link
Collaborator

This is a duplicate of #303, I was not able to reproduce the error message yet.
Could you share the version of the event that is currently in your google calendar (export gcal to ics, open in notepad, ctrl+F the failing event id from the log above) and the updated version of the same event from the ics source?

You are running an old version, i recommend you update to 5.7 so that we are talking about the same code.

@alexnb98
Copy link
Author

Hello, how can I find the event id? When I copy the id in the log and paste it into the google calender ics. I find no results?

image

@jonas0b1011001
Copy link
Collaborator

My bad, make the following change in helpers gs Line229
Logger.log("Updating existing event " + calendarEvents[index].id);

Run the script again and you should get a different id in the log.

@alexnb98
Copy link
Author

alexnb98 commented Mar 1, 2023

Perfect, this is the event that fails. It's an event that repeats and has no end date:

UID:[email protected]
CLASS:PUBLIC
CREATED:20220429T083454Z
DESCRIPTION:\n
LAST-MODIFIED:20230211T101810Z
LOCATION:
SEQUENCE:205
STATUS:CONFIRMED
SUMMARY:Lunch
TRANSP:OPAQUE
END:VEVENT
BEGIN:VEVENT
DTSTART;TZID=Europe/Budapest:20230213T093000
DTEND;TZID=Europe/Budapest:20230213T110000
RRULE:FREQ=WEEKLY;WKST=MO;UNTIL=20240129T083000Z;INTERVAL=2;BYDAY=MO
DTSTAMP:20230301T072904Z

@alexnb98
Copy link
Author

alexnb98 commented Mar 1, 2023

After deleting this event the script works again and the sync also. I also upgraded to the latest version. Thanks for your help and the work that you put into this project.

@derekantrican derekantrican changed the title Script stops syncing calendar events about one week ago 'Invalid start time' error from calendar.events.update Mar 1, 2023
@guillermovaldivi
Copy link

Hello, I have the same issue synchronizing a couple of outlook calendars into the Gmail one. How can I solve the problem? Thank you.

@guillermovaldivi
Copy link

Hello, I needed to delete all the Outlooks calendar in the Google Calendar and execute the script again and it works. Thanks all.

@Gnzlt
Copy link

Gnzlt commented May 30, 2023

Same issue here ✋

@jonas0b1011001 jonas0b1011001 added help wanted Extra attention is needed can't reproduce Developers are unable to reproduce the issue labels May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working can't reproduce Developers are unable to reproduce the issue help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

6 participants