Problems accessing Public Calendars - token error code HTTP/1.1 400 Bad Request

Good morning,
I’m trying to set up Gcal3 to access a few different public calendars. One, is a public calendar for my daughter’s school district. I want to be able to search for “Schools Closed” as a gc_Keyword, however, I can’t even get that far. When I put the public calendar’s URL into the Calendar ID field, I get a token error code: HTTP/1.1 400 Bad Request in Next Event.

The subscription URL is https://www.fcps.org/about/calendar/feed/ical.ics

I also tried another public ICS for Federal Holidays, and I’m getting the same result. These should both be uncredentialled calendars.

https://www.officeholidays.com/ics-fed/usa

Any advise?

Okay, I think I sort of found the problem, but it sort of still persists.

I discovered that the switch needed to be armed for one. I also appear to have to remove https:// from the Calendar ID field. This does permit GCal3 to fetch the calendar.

The problem I’m seeing now, is that after some period of time, The same HTTP/1.1 Bad Request shows back up.

When I go into Variables, the events do show, so I appear to be able to fetch those events in Reactor, but I’m wondering if this is expected behavior, or there is a bug in the plugin, or if I’m doing something wrong.

I’ve attached the log file from one of these instances in Zip format.
511-GCal3.log.zip (3.4 KB)

Anyone?

@Stuart. Any ideas what is causing this issue?

Sorry I can help much with the GCAL3, as I don’t use it, but a few old plugins suffered from still using http, when they needed to be updated to make https call.

As for the open .ics file, I have used this before, and have been working on some updates, if your interested…

http://forum.micasaverde.com/index.php?topic=6355.0

I looked at the thread, but the files don’t seem to be there anymore.

So, I guess I can marked this one as solved. I found a way around the issue, and I’ll detail below.

I was using public calendars with their link provided in the OP. Last night, I had some insomnia, so I decided to play around with the issue. I deleted the instances, deleted the plug-in, and reinstalled. I recreated the instances, and unfortunately, I still got the same HTTP 400 error.

Next, I tried going down the road of creating credentials. This should not be needed for public calendars, but I figured it might be worth a shot. With my credentials, still no luck. I then imported those calendars into my account. I then went into the settings for each calendar. I took the “Calendar ID” under Integrate Calendar, and put it into the “Calendar ID” on the instance. Progress, sort of. Now I’m getting a HTTP 403 error. It would retry several times, before finally telling me no events for the day. Even after it finally settles down, there is an event for the day, so it doesn’t appear reliable. I also went into the variables, and the error is in there an no events for the day. I looked up the 403 error, and it’s specific to Google Calendar where the Calendar is trying to be accessed too many times.

So, started over again. I deleted the instances, because I couldn’t remove the keywords under variables. It told me that the keyword was mandatory, even though the documentation says it could be blank . I couldn’t make it blank, so starting over was the best course of action.

My end result that is working flawlessly now is going back to the Integrate calendar setting under my Google Calendar for the ones I imported, and the last entry says “Public address in iCal format” with a https://calendar.google.com/calendar/ical/xyz12345 type address. It says “Use this address to access this calendar from other applications.” This works without any issues.

I know Stuart has moved on, so I felt documenting this issue for others may save some headaches.

1 Like