Intermittent CallbackRouteError with Discord provider in Docker #10902
Unanswered
sweti-yeti
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've got a website built with Next 14, authjs v5, and bun. I'm having issues with the Discord provider. Everything works when running the dev server, but when building & running in Docker I get a callback route error about 50% of the time:
I enabled debug logging in authjs and don't see any differences in the successful vs failing requests to
/oauth2/authorize
.I've got these env vars set:
AUTH_TRUST_HOST=true
AUTH_SECRET="my_secret"
AUTH_URL=http://localhost:3000/api/auth
I also tested without AUTH_URL and with NEXTAUTH_URL and saw no change in behavior.
I added logging to the start of my signIn and redirect callbacks and neither are getting called so the error appears to be coming from before callback execution.
Does anyone have some insight as to what else I can try? I've tried disabling the standalone build, enabling database logging, patching the next start-server.js to get full request logs, and nothing has given me any additional clues as to what's going on here.
Beta Was this translation helpful? Give feedback.
All reactions