-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
BUG: "Invalid time value" when pointing to a Nextcloud-powered ICS #61
Comments
Thanks for the report, @gabek . I rely on node-ical to parse the ICS payload so can't say much about why it's failing. I'll try to update to the latest release to see if it's something they've fixed recently.
I will see what error handling I can improve to fix that - if node-ical fails to parse a calendar, I think I should use a toast to display an error but keep parsing other calendars. That sound reasonable to you? |
Hmm, looks like I am already on the latest version, 0.16.1 But looking at that call stack again, it does look like it's something in the plugin that's throwing the exception. The only place I call Any chance you can localize this down to one event and can share an ICS file with just that? i.e. use Nextcloud to create a new calendar with just one recurring event and see if it has the problem? |
My ICS feed is rather large, so it could be anything. I'm not sure if it's one single event that's a problem or if every entry is. But should be easy to answer. I'm going to create a new calendar and add a single event in it and seee what we get. |
Good and bad news. I was able to create a new calendar with a single event, an event that is listed as "all day" and an event that reoccurs every day and there was no problem reading this. Do you know what field in ICS would be worth looking at? I could just export all of the datetimes for that field and see what one might look different/invalid. |
That makes sense. Even better yet, if only a single event in a calendar is unparseable, just skip that single event and maybe continue going through the calendar. They might all fail, if there's some incompatibility, but at least they'd be attempted. |
Previously, the code did not handle errors properly when retrieving and parsing calendar data. This update introduces error handling for downloading and filtering events from the calendars. - Added error handling for downloading calendars and parsing errors. - Store error messages encountered during processing. - Notify the user about any errors encountered during processing. This change ensures that any errors encountered during the retrieval and processing of calendars are properly handled and communicated to the user. Should help with BUG: "Invalid time value" when pointing to a Nextcloud-powered ICS #61
Thanks for checking. Let me see how I can add a debug build that way you can click and see the source / specific lines of code causing the issue(s). |
@gabek - if you look at the latest release, https://github.com/muness/obsidian-ics/releases/tag/1.3.2 , it now builds a debug version of the plugin (main-debug.js) alongside the normal production one. If you'd download that If you can share a public nextCloud ICS with the error I can debug myself, but this is the next best thing barring that. |
Thanks @gabek , I expected to see the non-minified code, so I'll have to check if my debug build is working correctly. const eventTimeZone = import_moment_timezone.tz.zone(event.rrule.origOptions.tzid);
offset = localTimeZone.utcOffset(date) - eventTimeZone.utcOffset(date); I think the exception is that Alternatively an ICS would be awesome as it'd make it a lot easier for me to debug this. You can even create it, and then upload it here as an attachment. |
Hi there. Thanks for the fantastic plugin! This is super useful.
I'm running into a scenario where I've added an additional ICS URL, that is generated by a Nextcloud server. However it throws "RngeError: Invalid time value" and then dies. It also then fails to handle the other calendar that I have configured, that the plugin is happy with.
Have you seen success with Nextcloud ICS URLs in the past? Thanks again!
The text was updated successfully, but these errors were encountered: