calcom / docker

The Docker configuration for Cal.com is an effort powered by people within the community. Cal.com, Inc. does not provide official support for Docker, but we will accept fixes and documentation. Use at your own risk.
MIT License
646 stars 338 forks source link

iCloud Calendar Credentials Not Accepted #261

Open JUNIJC opened 1 year ago

JUNIJC commented 1 year ago

I've created two separate secret app iCloud codes for the Cal icloud calendar sync feature and it fails to login. I checked by copying and pasting the code to ensure there were no spaces before and after, I also manually typed the codes in and tried my regular iCloud password. please view the photos for reference. imageimage

wez commented 1 year ago

I'm also seeing this, here are the errors from docker:

@calcom/web:start: RangeError: Invalid key length
@calcom/web:start:     at Cipheriv.createCipherBase (node:internal/crypto/cipher:122:19)
@calcom/web:start:     at Cipheriv.createCipherWithIV (node:internal/crypto/cipher:141:3)
@calcom/web:start:     at new Cipheriv (node:internal/crypto/cipher:249:3)
@calcom/web:start:     at Object.createCipheriv (node:crypto:141:10)
@calcom/web:start:     at symmetricEncrypt (/calcom/apps/web/.next/server/chunks/13303.js:29:66)
@calcom/web:start:     at handler (/calcom/apps/web/.next/server/chunks/40625.js:39:95)
@calcom/web:start:     at async handler (/calcom/apps/web/.next/server/pages/api/integrations/[...args].js:645:13) {
@calcom/web:start:   code: 'ERR_CRYPTO_INVALID_KEYLEN'
@calcom/web:start: }
wez commented 1 year ago

traced it via https://github.com/calcom/docker/issues/183 to not setting the encryption key correctly in the .env file