10 months ago
I have no errors in the log, my code has no errors and neither do the variables
0 Replies
10 months 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
10 months ago
next frontend with a django backend?
10 months 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?
10 months ago
send your settings.py please
10 months ago
so you arent using django anywhere??
10 months 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
10 months ago
please take joshie's advice
I'll spend the day on this, I did this almost the whole day before coming here
10 months ago
something in your code is sending a redirect
10 months 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
10 months ago
do tell
10 months 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