cal.com icon indicating copy to clipboard operation
cal.com copied to clipboard

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

Open xplosionmind opened this issue 2 years ago • 1 comments

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

xplosionmind avatar Nov 21 '22 13:11 xplosionmind

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

alishaz-polymath avatar Nov 21 '22 14:11 alishaz-polymath

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

larseggert avatar Jan 27 '23 11:01 larseggert

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

alishaz-polymath avatar Jan 31 '23 13:01 alishaz-polymath

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

alishaz-polymath avatar Jan 31 '23 13:01 alishaz-polymath

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

handkerchief333 avatar Feb 04 '23 15:02 handkerchief333

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?

xplosionmind avatar Feb 07 '23 12:02 xplosionmind

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. 🙏

alishaz-polymath avatar Feb 07 '23 12:02 alishaz-polymath

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

xplosionmind avatar Feb 07 '23 12:02 xplosionmind

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

You can send them over to [email protected] Thanks :)

alishaz-polymath avatar Feb 07 '23 12:02 alishaz-polymath

Any news on that?

handkerchief333 avatar Feb 27 '23 18:02 handkerchief333

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 avatar Feb 27 '23 18:02 alishaz-polymath

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 🙌

alishaz-polymath avatar Mar 01 '23 13:03 alishaz-polymath