K
Kinde3w ago
tga

Something went wrong - Error code: 1656

Hi everyone, I have a project that worked fine in development but, when going to production, shows the the "Something went wrong" message after authentication. This is a Django app, in production through Cloudflare. Is there a way to debug this, maybe getting a log or some hint about what is going wrong? Any ideas appreciated.
Authentication error Something went wrong when we tried to authenticate you, and we can’t offer a quick way out. Start a new session and try signing in again. Error code: 1656
4 Replies
tga
tgaOP3w ago
problem solved for me -- the server was sending a http callback url, but Cloudflare was really doing a 302 redirect to https. Kinde doesn't follow the 302 -- it would be nice to have a better error message there, especially because the URL "works" in a browser. it only clicked for me when checking it with curl. the solution was having Django take the https status from headers (SECURE_PROXY_SSL_HEADER setting) and send a proper https:// callback url.
Yoshify
Yoshify3w ago
Hi Tga, Thanks for sharing your solution 🙂 Is there anything else we can help with?
tga
tgaOP3w ago
we're all good on this, thanks!
COACH
COACH3w ago
I am having the same issue with expressjs on vercel. Same message and looking at logs on vercel i see a 302
Want results from more Discord servers?
Add your server