You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Google Calendar loads the events.ics file created using this plugin if I save it and import the file. However, when I try using the "Add by URL" feature in Google Calendar, it won't load the calendar generated using this plugin. The same URL loads flawlessly into my iPhone's Calendar.
I initially got an error message The address that you provided did not contain a calendar in a valid iCal or GData format. Noting other examples, I changed the Content-Disposition header from attachment to inline, and now rather than give an error message, it just keeps displaying the "Importing calendar from url..." message, and the calendar does at least show up in my "Other Calendars" area, but none of the events get passed in correctly.
Running my file through a couple iCal validators, again the events.ics file saved and uploaded validates perfectly. But when I try to give it the URL of the iCal feed, this validator gives me this error:
Your calendar is using an invalid newline format. Make sure to use \r\n to end lines rather than just \n
Sorry, your calendar could not be parsed.
Error: Error was: Error at line 1: Expected [-3], read [10]
Cause:
Context for line 1:
1:
2:
3:
4: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
5:
6: <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr"
7: xml:lang="en-us" lang="en-us">
Viewing my events.ics file in a text editor, there is no ' character before BEGIN, and each line ends with CRLF. I've tried changing my urls.py to include the filename events.ics, trying with Content-Disposition header set to attachment or inline with no luck.
I wonder what your results have been? Any help is much appreciated.
The text was updated successfully, but these errors were encountered:
I'm afraid I'm not able to maintain this plugin due to lack of time
and usage of Django in general. I'll pull in any merge requests that
look reasonable, but can't check them, so I suggest a fork.
As for the bug: I suggest investigating the output of the view, and of
vObject - paying special attention to newlines (\r\n vs. \n).
Turns out there is nothing wrong with the plugin, I forgot that I have a middleware that enforces login_required for every view not specified in a list of exemptions, and I forgot to add the iCal feed urls to this list. Thanks again for the great plugin!
Google Calendar loads the events.ics file created using this plugin if I save it and import the file. However, when I try using the "Add by URL" feature in Google Calendar, it won't load the calendar generated using this plugin. The same URL loads flawlessly into my iPhone's Calendar.
I initially got an error message
The address that you provided did not contain a calendar in a valid iCal or GData format
. Noting other examples, I changed theContent-Disposition
header fromattachment
toinline
, and now rather than give an error message, it just keeps displaying the "Importing calendar from url..." message, and the calendar does at least show up in my "Other Calendars" area, but none of the events get passed in correctly.Running my file through a couple iCal validators, again the events.ics file saved and uploaded validates perfectly. But when I try to give it the URL of the iCal feed, this validator gives me this error:
...and this validator gives this error:
Viewing my events.ics file in a text editor, there is no ' character before BEGIN, and each line ends with CRLF. I've tried changing my urls.py to include the filename
events.ics
, trying withContent-Disposition
header set toattachment
orinline
with no luck.I wonder what your results have been? Any help is much appreciated.
The text was updated successfully, but these errors were encountered: