Home › Forums › Calendar Products › Event Aggregator › The server responded with a malformed response.
- This topic has 15 replies, 3 voices, and was last updated 8 years, 7 months ago by Brook.
-
AuthorPosts
-
September 22, 2015 at 10:53 am #1007574Anthony D’ArcoParticipant
I just tried setting up an .ics file and I received the following error message:
The server responded with a malformed response. Please see the JS console for more information.
I just tried looking through your forums, and I didn’t see anyone with the same error.
September 22, 2015 at 10:48 pm #1007726BrookParticipantHowdy Anthony,
Thanks for detailing the problem. Is it possible you could share the iCal file you are trying to upload? If you could post a link to it in a private reply using the “Set as private reply” box, I would use the file to try and investigate what’s going on.
Cheers!
– Brook
September 23, 2015 at 6:02 am #1007788Anthony D’ArcoParticipantThis reply is private.
September 24, 2015 at 11:59 am #1008456BrookParticipantThanks for sharing that Anthony, I am giving it a test right now.
September 29, 2015 at 7:38 am #1009665Anthony D’ArcoParticipantBrook,
I just wanted to follow up on this request to see how things were coming.
Thank you,
AnthonySeptember 30, 2015 at 1:38 pm #1010234AmieParticipantThis reply is private.
September 30, 2015 at 2:21 pm #1010246BrookParticipantHowdy Anthony,
Thank you for checking in. I forgot to report back my findings! I am sorry for the delay. I appreciate your patience.
The error in your console was likely this:
Fatal error: Maximum execution time of 30 seconds exceeded
Your ics file contains a little over 5000 events, many of them recurring ones that will thus spawn more than 5000 events in the calendar.
You will likely need to break your ics file up into smaller chunks to import it. I tried simply adjust PHP’s Maximum execution time from 30 seconds which hides this error. But even still the file was simply too large and overwhelmed the site.
If the calendar utility that you are exporting the .ics from allows you to do smaller sets of data, say a couple months worth of events at a time, you might try that. Or if you prefer there command line utilities like this one to break up .ics files into smaller chunks.
I am sorry that you can’t do them all at once. That would be cool. But most website servers are nowhere near powerful enough to handle 5000 events being created at once. We actually have a batch background process for anything more than 10 events, because anything more is pushing it on some servers.
Does that make sense? Are you able to break up the ics file and trying importing the smaller portions one at a time?
Cheers!
– Brook
September 30, 2015 at 2:56 pm #1010260Anthony D’ArcoParticipantBrook,
Yes that makes perfect sense. Do you know if there is a way to do this through Google Calendar? Or what if I changed the date range on the import to only do one month at a time?
Also, lets say I get all the events in. Will that cause problems if I try to get it to refresh on a schedule basis (ie. is it going to try to reimport all 5000 events every time or will it only update what’s been changed?)
Thank you,
AnthonyOctober 1, 2015 at 6:56 am #1010385BrookParticipantI appreciate your understanding, Anthony.
Google Calendar does allow you to break events up into multiple calendars. It’s essentially a way of categorizing events. If you can really break your events up into calendars then you will basically solve your export problem for now and into the future. As time goes on and you wish to reimport new events, if you’re only importing a few hundred events you should be in the clear. If there is no great way to categorize all those events, perhaps it could be done by date?
Have you ever run thousands of posts or events on a WordPress installation before? It seems like most servers are able to handle a couple thousand with grace. But, once you get much more than that the cheapest hosting packages (~$10/mo) are no longer powerful enough to serve pages without delay. I just want to give you some warning about this.
If our iCal plugin isn’t going to satisfy your needs here please let us know. I realize you are outside of our usual return window for a plugin, but I would still to like to see if we can get you a refund for it. There’s nothing more dissatisfying than purchasing something you can’t use.
Cheers!
– Brook
October 1, 2015 at 7:02 am #1010388BrookParticipantAmie I just noticed your response. Sorry for missing it earlier. It sounds like you are probably hitting the same issue. Would it be possible to break up some of your events into a different category and export them separately? I notice you have ~50 recurring events. If you separate those into a different Google Calendar and I would not be surprised if you could just import the two files, one file with the one-time events and a separate with recurring.
Your server might also benefit from bumping PHP’s maximum execution time if the above does not work. You do not have nearly as many events as Anthony so it might not choke if you bumped it from 30 seconds to say 120 seconds. I can not personally walk you through how to change that, because if varies from host to host. But if you ask your webhost how to change “PHP’s maximum execution time” they should be able to walk you through changing it from 30 to 120.
If you need further help, would you mind opening a new topic? We would truly love to help. But, we strive to keep our topics here dedicated to one users problem, that way each persons gets our full attention.
Thank you!
- Brook
October 1, 2015 at 7:09 am #1010412AmieParticipantThis reply is private.
October 1, 2015 at 7:33 am #1010430BrookParticipantThis reply is private.
October 1, 2015 at 8:39 am #1010500Anthony D’ArcoParticipantBrook,
Yeah, we have a dedicated servers, so that isn’t an issue. We should have the power. I think its just a matter of getting them in. I think my question is, for .ics imports you can schedule them. If I schedule it to weekly, does it try to reimport the whole thing again, or just what has been changed/updated?
For instance, I get all 5K events in. But then at the end of the day it tries to pull the calendar in again, and 5 events have been added/changed does it:
A. Try to pull all 5K
B. Pull the 5 new/changed eventsLet me know.
October 1, 2015 at 3:28 pm #1010684BrookParticipantYeah, we have a dedicated servers, so that isn’t an issue. We should have the power.
Excellent! I had a feeling you weren’t the average shared hosting setup, but just in case you were…
If I schedule it to weekly, does it try to reimport the whole thing again, or just what has been changed/updated?
Good question. It runs through a bit of a process for each event:
- Parses the iCal feed building each of the 5k events.
- It checks each event to see if it exists in the database.
- If it doesn’t exist it gets created.
- If it does exist and some of the info has changed, it updates the event.
- Otherwise it skips the event.
So while it minimizes writing to the database (slow), it still has to parse and double check each event (somewhat fast).
Even still we are interested in some performance improvements the iCal importer. For one thing we would like to batch import events in the background as we currently do when you create a large number of recurring events. Another we are looking into is checking the LAST-MODIFIED field in the iCal file and comparing it against the last import date. Not all iCal files have these, but those exported from Google Calendar do. For those that do it could really help speed up large scheduled imports by cutting down on database queries. But, neither of these improvements is far enough along yet that I could give you an ETA on when they will be ready.
Does that answer your question?
- Brook
October 2, 2015 at 6:32 am #1010856Anthony D’ArcoParticipantBrook,
Thank you for the explanation, and yes I think I understand how I want to approach this from a workflow stand point.
Thank you,
Anthony -
AuthorPosts
- The topic ‘The server responded with a malformed response.’ is closed to new replies.