AnousoneFSA
ZITADEL4mo ago
8 replies
AnousoneFS

can't redirect to login page

when call url in browser: http://localhost:8080/ui/console -> redirect to: http://localhost:3000/ui/v2/login/login?authRequest=V2_338270893702643715.
then got:
localhost is currently unable to handle this request.
HTTP ERROR 500

i run on mac os: 15.3.1
this is the docker compose:

this is the log from zitadel login:

command:
docker logs zitadel-login -f
output:
ZITADEL_SERVICE_USER_TOKEN_FILE=/current-dir/login-client.pat is set. Awaiting file and reading token.
token file found, reading token
▲ Next.js 15.4.0-canary.86
- Local: http://localhost:3000
- Network: http://0.0.0.0:3000

✓ Starting...
✓ Ready in 181ms
SyntaxError: Unexpected token 'W', "W3sic2Vzc2"... is not valid JSON
at JSON.parse (<anonymous>)
at q (.next/server/chunks/6939.js:1:134613)
at async U (.next/server/app/login/route.js:1:6064)
at async k (.next/server/app/login/route.js:13:2830)
at async g (.next/server/app/login/route.js:13:3833)
at async $ (.next/server/app/login/route.js:13:4955)
SyntaxError: Unexpected token 'W', "W3sic2Vzc2"... is not valid JSON
at JSON.parse (<anonymous>)
at q (.next/server/chunks/6939.js:1:134613)
at async U (.next/server/app/login/route.js:1:6064)
at async k (.next/server/app/login/route.js:13:2830)
at async g (.next/server/app/login/route.js:13:3833)
at async $ (.next/server/app/login/route.js:13:4955)


Please help. I think I'm missing something small at this point and can't figure it out.
Was this page helpful?