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
675 stars 346 forks source link

Error adding Google Calendar #327

Open stevenmcastano opened 7 months ago

stevenmcastano commented 7 months ago

I'm trying to integrate with a gmail calendar... I've followed the steps for the docker deployment as well as getting the google app credentials which I've put in the proper .env and .end.appStore files... however, when I click to add a calendar... it take me to the google auth screen, let's me pick which google account to use, however.... once I select an account, on redirect it fails, tells me connection refused and I get the following in the logs:

docker-calcom-1  | @calcom/web:start: [next-auth][error][CLIENT_FETCH_ERROR]
docker-calcom-1  | @calcom/web:start: https://next-auth.js.org/errors#client_fetch_error fetch failed {
docker-calcom-1  | @calcom/web:start:   error: {
docker-calcom-1  | @calcom/web:start:     message: 'fetch failed',
docker-calcom-1  | @calcom/web:start:     stack: 'TypeError: fetch failed\n' +
docker-calcom-1  | @calcom/web:start:       '    at Object.fetch (node:internal/deps/undici/undici:11730:11)\n' +
docker-calcom-1  | @calcom/web:start:       '    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)',
docker-calcom-1  | @calcom/web:start:     name: 'TypeError'
docker-calcom-1  | @calcom/web:start:   },
docker-calcom-1  | @calcom/web:start:   url: 'http://localhost:3333/api/auth/csrf',
docker-calcom-1  | @calcom/web:start:   message: 'fetch failed'
docker-calcom-1  | @calcom/web:start: }

And that message seems to repeat itself around once a minute.

voska commented 7 months ago

Have you set your NEXTAUTH_URL ? https://github.com/calcom/docker?tab=readme-ov-file#client_fetch_error