2 years ago
I have no errors in the log, my code has no errors and neither do the variables
46 Replies
2 years ago
Are you using cloudflare?
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 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
and the http://localhost:5756/ have ERRCONNECTIONREFUSED
2 years ago
next frontend with a django backend?
2 years ago
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?
2 years ago
send your settings.py please
2 years ago
so you arent using django anywhere??
2 years ago
how do you mistakenly think you are using django?
I got confused sorry, I have a project in django but it's not this one
2 years ago
please take joshie's advice
I'll spend the day on this, I did this almost the whole day before coming here
2 years ago
something in your code is sending a redirect
2 years ago
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
2 years ago
do tell
2 years ago
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
