#ERR_TOO_MANY_REDIRECTS
23 messages · Page 1 of 1 (latest)
Are you using cloudflare?
Or django? And doing some type of http redirect stuff for "security"
Ah yea, check if you have a line like SECURE_SSL_REDIRECT = True. If so, get rid of it
And if it isn't the django app but the prisma stuff, it is likely a similar reason. At least, that is what got me once
Well, obligatory; does it work properly locally?
Well 100% something is trying to do some level of redirect. Railway handles https for you. So if you have some redirect into https type stuff, it causes errors. So, I would start by looking for that type of logic and disabling
next frontend with a django backend?
are you getting the redirects from the frontend or backend domain?
?? Well, this isn't a real site. This is localhost. Not something for you to interact with (unless deployed locally). So what do you mean?
send your settings.py please
so you arent using django anywhere??
how do you mistakenly think you are using django?
please take joshie's advice
something in your code is sending a redirect
try having it trust the proxy headers
NextJS does have middleware builtin. It is likely doing something for you that is causing the redirects. It is mostly DX streamlined for Vercel. But it can be used on other platforms. Just not the typical happy path
do tell
joshie was right then, it was middleware doing something undesirable, in the future please don't be so dismissive when community members try to help you
Thank you for marking this question as solved!
it is not impossible, please take joshie's advice and stop your code from sending a redirect