#ERR_TOO_MANY_REDIRECTS

23 messages · Page 1 of 1 (latest)

devout etherBOT
#

Project ID: b51594de-0245-4106-b7d1-e8d8412a6c2d

broken sable
#

Are you using cloudflare?

ashen dirge
#

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

young wraith
#

next frontend with a django backend?

#

are you getting the redirects from the frontend or backend domain?

ashen dirge
#

?? 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?

young wraith
#

so you arent using django anywhere??

#

how do you mistakenly think you are using django?

young wraith
#

something in your code is sending a redirect

#

try having it trust the proxy headers

ashen dirge
#

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

young wraith
#

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

solemn templeBOT
young wraith
#

it is not impossible, please take joshie's advice and stop your code from sending a redirect

devout dust
#

I had an issue with clerk infinitely redirecting me

#

I had to clear my authentication cookies