#weird redirect to localhost:5000 in prod

28 messages · Page 1 of 1 (latest)

signal hazel
#

Hey guys, I recently deployed a new version of my open-source:
https://reduced.to

For some reason after clicking the login / register form there is a redirection to localhost:5000. I don’t know why, in dev everything works good..

signal hazel
#

up

signal hazel
#

Up - it seems to be happening only after form submit (using action)

signal hazel
#

The port is 5000, but that’s should be ok.

#

I run it with build and serve and it was working good

signal hazel
#

Up

signal hazel
#

The weird thing is that normal post requests work. If you try to reduce a url it will work.

#

I will check it out! Thank you so much!

signal hazel
#

I am just pushed this changes.
There is also something weird, the source code (F12) contains localhost:5000 at some places.
I don't really know where he got those.

#

Thank you so much, I am still getting 403, in dev mode it's works (changed globalAction to just return a string).

signal hazel
#

Correct

#

That’s NestJS backend

#

It’s weird that I am the only one faced this issue… don’t you think?

#

btw, this is my nginx config:

        location / {
         proxy_pass http://localhost:5000/;
     proxy_http_version 1.1;
        }

    # Backend
    location /api/ {
     proxy_pass http://localhost:3000/api/;
     proxy_http_version 1.1;
    }
#

I am using normal express for it, I don't even know how to start debugging this issue.

#

yep

#

Is it ok if we hop in to call?

#

Do you think it's related?

#

I will try that, thanks!

#

Wait, I can see that I never used Qwik express adapter..

#

Normal express :/

#

Great, thank you so much for your help!

#

I will try to set up the adapter 😉

stone halo
signal hazel
#

@distant zephyr I also tried to set it up with Express adapter, seems like the issue isn't fixed.

stone halo