calcom / cal.com

Scheduling infrastructure for absolutely everyone.
https://cal.com
Other
32.47k stars 8.03k forks source link

[CAL-417] “e is undefined” error when adding CalDAV #5604

Closed xplosionmind closed 1 year ago

xplosionmind commented 1 year ago

Issue Summary

I see the following error when trying to add a Nextcloud CalDAV url to my cal.com account. Note: I already added another CalDAV Nextcloud calendar and everything went smoothly.

Steps to Reproduce

  1. Click on “add CalDAV” calendar in https://app.cal.com/apps/installed/calendar?hl=caldav-calendar
  2. Trying to add two different URLs: https://nuvola.scambi.org/apps/calendar/p/zogAXYXHjYHwksDp (public calendar link) and https://nuvola.scambi.org/remote.php/dav/principals/users/tommi/
  3. The error I shared pops up

Related to #3457

From SyncLinear.com

alishaz-polymath commented 1 year ago

Thanks for the report. I'll add it to the list 🙏

larseggert commented 1 year ago

Same issue here against a https://sabre.io/baikal/ server

alishaz-polymath commented 1 year ago

Hey @larseggert could you please provide me with steps to reproduce the error? Thanks

alishaz-polymath commented 1 year ago

Hey @xplosionmind Could you please create a test account and share credentials with me so that I can test it locally? Thanks 🙏

handkerchief333 commented 1 year ago

I have the same problem with my Nextcloud calendar.

My steps to reproduce:

  1. Install a nextcloud instance with the setup-nextcloud.php from the community: https://nextcloud.com/install/ DOWNLOAD Server --> COMMUNITY PROJECTS --> Web installer
  2. On your installed Nextcloud platform, go to the Calendar: /index.php/apps/calendar/dayGridMonth/now
  3. On the bottom left, click on "calendar settings"
  4. Click on "copy CalDAV address"
  5. This gives you something like this: https://yourownnextcloudurl/remote.php/dav
  6. Switch to your cal.com account: /apps/caldav-calendar
  7. Click on install app
  8. Fill in the url from step 5.
  9. Fill in your nextcloud login credencials
  10. Boom, same error message "e is undefined".

PS: The same CalDAV sync with my nextcloud calendar was successful for my android calendar, with DAVx5: https://docs.nextcloud.com/server/latest/user_manual/en/groupware/sync_android.html#with-the-nextcloud-mobile-app

Does this information help you or is there anything else i can do?

Greetings

Update: The error message "e is undefined" comes in Firefox, in Microsoft Edge this error appears: "Cannot destructure property 'auth' of 'e' as it is undefined."

https://github.com/calcom/cal.com/issues/6697

xplosionmind commented 1 year ago

Could you please create a test account and share credentials with me so that I can test it locally?

Hi @alishaz-polymath, sure! But I do not understand, do you want me to create a test account on the CalDAV server or on cal.com, or both?

alishaz-polymath commented 1 year ago

just the CalDAV server @xplosionmind Essentially, I'll connect to that account in a local instance of Cal.com and run diagnostics to see what's going on. 🙏

xplosionmind commented 1 year ago

Ok, I did it. Where could I share the credentials privately?

alishaz-polymath commented 1 year ago

Ok, I did it. Where could I share the credentials privately?

You can send them over to ali@cal.com Thanks :)

handkerchief333 commented 1 year ago

Any news on that?

alishaz-polymath commented 1 year ago

Hey guys, just an update that we're going through revamping the CalDAV integration as it is quite unpredictable at the moment. I'll report back once there's more to add. 🙏

alishaz-polymath commented 1 year ago

Hey @xplosionmind Just as a FYI, I'm currently working on re-building CalDAV setup from scratch, so this might take a bit of time. We're currently planning to fully support iCalendar 2.0 (RFC-5545) as that seems to be a more robust solution altogether. 🙏 I'll keep you guys posted here as I progress. Thank you for your wait in the mean time 🙌