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
691 stars 363 forks source link

Getting error with next-auth #210

Closed cyango closed 1 year ago

cyango commented 1 year ago

Don't know what happened, but from a week ago I'm getting this error and can make whole calendso working:

image
emrysal commented 1 year ago

What version are you running? If this was a week ago you may be running 2.5.7, 2.5.8 has a critical fix for non-credential nextauth providers.

emrysal commented 1 year ago

Hi @cyango - I see @krumware has just released 2.5.9 on Docker - with this your issue is likely fixed 👍

cyango commented 1 year ago

Hi, updated and confirmed the error still. But now it gives this extra log:

image
krumware commented 1 year ago

@cyango I know the new error is a little bit different, I haven't seen it yet and am looking into it. For the first error, have you seen the notes in the readme about the client_fetch_error? https://github.com/calcom/docker#client_fetch_error

cyango commented 1 year ago

@cyango I know the new error is a little bit different, I haven't seen it yet and am looking into it. For the first error, have you seen the notes in the readme about the client_fetch_error? https://github.com/calcom/docker#client_fetch_error

Alright this resolved the issue. Previously I had the public url in the NEXTAUTH_URL=https://example.com, and it worked.

But now works with your solution. Thanks.

krumware commented 1 year ago

awesome, glad it worked! Usually this doesn't necessarily surface if the host machine's DNS is able to perform the request, but this can also cause unwanted egress. Another option is to manually add that external URL to the hosts file of the container/node, but yuck. I prefer this localhost call regardless