ivan-lednev / obsidian-day-planner

An Obsidian plugin for day planning with a clean UI and a simple task format
MIT License
2.12k stars 496 forks source link

silent remote calendar failures #422

Open scottbolte opened 7 months ago

scottbolte commented 7 months ago

Describe the bug Remote calendar silently fails on macOS. Remote calendar events are not visible on iOS, but at least it complains that the fetch failed but there are no details available.

To Reproduce Steps to reproduce the behavior on macOS:

  1. Use the instructions at How to get iCloud Calendar address on Mac in iCal format | SoulAdvisor to get a webcal URL.
  2. Add an iCloud calendar URL to Day Planner's configuration (e.g., webcal://p61-caldav.icloud.com/published/...)
  3. Restart Obsidian just to be sure.
  4. Monitor the Obsidian Developer Console to look for new messages from Day Planner
  5. Show the Day Planner Timeline on a day with events in the iCloud calendar. Neither calendar events on the timeline, nor error messages in the console, are found.

Steps to reproduce the behavior on iOS:

  1. Enable the Logstravaganza plugin. (I believe this is an effective way to get console messages on iOS)
  2. Using the iClould an iCloud calendar to Day Planner's configuration (e.g., webcal://p61-caldav.icloud.com/published/...)
  3. Restart Obsidian.
  4. See a pop-up error message that says See console for details. Could not fetch calendar from webcal://p61....
  5. Review the Logstravaganza log for the device. Nothing from Day Planner is found.

Expected behavior Ideally the remote calendar events would be visible. Alternatively, there would be warning messages when Obsidian is started on macOS, or there would be error messages in the console, that would help me figure out what's wrong.

ThomasThurnher commented 7 months ago

I am experiencing the same exact behaviour.

A quick but incomplete workaround: If you change

webcal://p61-caldav.icloud.com/published/...

to

https://p61-caldav.icloud.com/published/...

then the events will be displayed. But there will be no details, such as name etc added. For instance, if you have an Icloud calendar called "Arbeit" then events will be displayed as

Screenshot 2024-04-17 at 08 48 04

scottbolte commented 7 months ago

Thanks for the suggestion @ThomasThurnher. Not only does switching to https work for me on both laptops & mobile devices, I am able to see the event titles.

jasonshanks commented 3 months ago

I continue to have the same issue, switching to https makes no difference for me – with 2 iCloud calendars (one personal, one Family)

ivan-lednev commented 2 weeks ago

@jasonshanks, please create a dummy calendar with a couple of dummy events and share the link to it here so that I can debug the issue.

matteocervelli commented 2 weeks ago

I linked 5 remote calendars, both Google Calendars and iCloud. They showed up on the calendar for the first couple of days using the plugins. It works properly on iOS and iPadOS, not on macOS, where I use Obsidian 95% of the time.

The calendars aren't showing anymore in the last week. I didn't change anything. This is not affected by the 0.25 update, the same behavior happened before and now. The problem affects only MacOS, both iCloud and google (main and secondary) calendars. I have all of them in the https: format

ivan-lednev commented 2 weeks ago

@matteocervelli please create a dummy calendar with a couple of dummy events and share the link to it here so that I can debug the issue.

matteocervelli commented 2 weeks ago

@matteocervelli please create a dummy calendar with a couple of dummy events and share the link to it here so that I can debug the issue.

It's complicated.

Anyway, restarting my Mac worked partially. Some events appeared. Others, didn't.

And it is not calendar-based.

For example, on iCloud I have 2 recurring events in a shared calendar with my spouse:

Or into my Work Calendar (Google), the main calendar shows only today's activities, both meetings with invitee and alone events, while others secondary calendars are not shown. But they were this morning when I rebooted my Mac.

Kinda bizarre.

PS This plugin is probably my favorite, you did a terrific job.

ivan-lednev commented 2 weeks ago

@matteocervelli, can you check out devtools console for errors? I think it's Option + ⌘ + I on a Mac

matteocervelli commented 2 weeks ago

I checked, unfortunately I don't have anything concerning Day Planner plugin.