Hi All, I'm running into an issue where after I l...
# developers
s
Hi All, I'm running into an issue where after I login nothing happens - no redirect or anything. There are no error logs being generated and I don't see anything in my browser console. Has anyone had experience with this issue before?
p
self hosted or hosted?
s
Self hosted
p
could be anything, any errors in the terminal?
s
Nothing coming across in the runtime logs in the terminal
I initially suspected it was an issue with my redirect URLs, but they seem are all configured to be the same
this is the configuration of my redirect URLS
Copy code
# - SHARED **************************************************************************************************
NEXT_PUBLIC_WEBAPP_URL='<https://cal-dev.mydomain>'
# Change to '<http://localhost:3001>' if running the website simultaneously
NEXT_PUBLIC_WEBSITE_URL='<https://cal-dev.mydomain>'
NEXT_PUBLIC_CONSOLE_URL='<https://cal-dev.mydomain>'
NEXT_PUBLIC_EMBED_LIB_URL='<https://cal-dev.mydomain>'

NEXTAUTH_URL='<https://cal-dev.mydomain/api/auth>'
I'm thinking it may be potentially related to this https://github.com/calcom/cal.com/issues/851 but I'm not hosting on railway
p
weird, can you record it with birdeatsbug.com?
s
Unfortunately I can't due to restrictions on what kind of data I can share. Is there any documentation on how exactly the .env file should be configured for self hosting?
p
you can also send me the recording via dm
s
Yeah I did follow those steps. Unfortunately there's some information missing around configuring the redirect urls and the .env file in general. I've had to pull from a lot of other workarounds in this slack channel
👍 1
p
ok lemme pull in @zomars maybe something got added that is not in the documentation yet
❤️ 1
s
So for more information, I was running 'Yarn build' -> 'Yarn Start' and encountering there error, but if I run the 'yarn' dx deployment it successfully redirects after logging in. Nothing changed with my configuration
z
Did you generate a NEXTAUTH_SECRET?
s
I did
z
Do you get any errors in the network tab?
Are you getting generated cookies correctly?
s
No errors in the network tab, everything seems to be generating correctly
h
@Samuel Reed Sometimes there are no network errors or console errors at all. You see an okay response with data which has error/errors field, which should have the reason why it might be happening.
g
@Samuel Reed same problem here, did you happen to solve the issue?
t
Same problem also
Also if I login while i'm in
yarn dev
and then I change to
yarn start
, I'm logged in but I cannot logout
I figured out how to solve it my case. I cleared all the cookies and then it worked normally.
🙏 1
@Samuel Reed @Gianluca Gilardi It may help you