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

Error: Bad Request at return Calendar.Events.insert(newEvent, targetCalendarId) #289

Closed
jrey2216 opened this issue Oct 11, 2022 · 2 comments
Labels
duplicate This issue or pull request already exists

Comments

@jrey2216
Copy link

Script functioned months ago for individual URLs, outside of an issue with recurring events duplicating, which I planned to deal with later. At some point recently, the script shows the error below on every run, for every API URL, for 5.6.

GoogleJsonResponseException: API call to calendar.events.insert failed with error: Bad Request
at unknown function
at callWithBackoff(Helpers:877:16)
at processEvent(Helpers:227:20)
at unknown function
at startSync(Code:201:15)

Example URL: https://api.rschooltoday.com/feed/as/calendar?key=f8cc02c7-a71b-5fed-952c-e67f003b5cff&output_type=ical&period=1year

Screen Shot 2022-10-11 at 3 10 52 PM

@jrey2216 jrey2216 added the bug Something isn't working label Oct 11, 2022
@jonas0b1011001
Copy link
Collaborator

This is actually a duplicate of #258 . The *.ics you provided has at least one event that mixes date and datetime.

DTSTART;VALUE=DATE:20230220
DTEND:20230221T055500Z

@jonas0b1011001 jonas0b1011001 added duplicate This issue or pull request already exists and removed bug Something isn't working labels Oct 14, 2022
@derekantrican
Copy link
Owner

Closing as a duplicate. Please move all future discussion to #258

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants