You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having an issue trying to deploy this onto a server, we've setup an nginx server with yarn 1, node 14, npm 6
We're using pm2 to handle instances / ensure continuous deployment.
It works absolutely fine via server IP, e.g. we can access via http://iphere:3800 but setting up a domain to proxy that, e.g. just a general url, it's causing a redirect loop and memory is spiking, the items looping are:
This keeps going until the server eventually returns a 504 gateway timeout.
Is there anything specifically needing done to help this work on a server? I see the demo is working fine, just trying to figure out where we're going wrong.
Thanks,
Lee
The text was updated successfully, but these errors were encountered:
Are being fired over http, not https, and as we're forcing https via nginx, it was causing the redirect loop.
Is someone able to look into this please? I would think all queries should be https?
Thanks,
Lee
leemethvenmtc
changed the title
Issue deploying to server using pm2, loop occurring when trying to access via domain
http / https Issue deploying to server using pm2, loop occurring when trying to access via domain
Aug 17, 2021
Hi,
Having an issue trying to deploy this onto a server, we've setup an nginx server with yarn 1, node 14, npm 6
We're using pm2 to handle instances / ensure continuous deployment.
It works absolutely fine via server IP, e.g. we can access via http://iphere:3800 but setting up a domain to proxy that, e.g. just a general url, it's causing a redirect loop and memory is spiking, the items looping are:
89.145.68.175 - - [17/Aug/2021:11:24:22 +0100] "POST /api/shopify/fetchCustomer HTTP/1.1" 301 169 "-" "axios/0.21.1" "-" 89.145.68.175 - - [17/Aug/2021:11:24:22 +0100] "POST /api/shopify/fetchCustomer HTTP/1.1" 301 169 "-" "axios/0.21.1" "-" 89.145.68.175 - - [17/Aug/2021:11:24:22 +0100] "POST /api/shopify/fetchCustomer HTTP/1.1" 301 169 "-" "axios/0.21.1" "-" 89.145.68.175 - - [17/Aug/2021:11:24:22 +0100] "POST /api/shopify/fetchCustomer HTTP/1.1" 301 169 "-" "axios/0.21.1" "-" 89.145.68.175 - - [17/Aug/2021:11:24:22 +0100] "POST /api/shopify/fetchCustomer HTTP/1.1" 301 169 "-" "axios/0.21.1" "-" 89.145.68.175 - - [17/Aug/2021:11:24:22 +0100] "POST /api/shopify/fetchCustomer HTTP/1.1" 301 169 "-" "axios/0.21.1" "-" 89.145.68.175 - - [17/Aug/2021:11:24:22 +0100] "POST /api/shopify/fetchCustomer HTTP/1.1" 301 169 "-" "axios/0.21.1" "-" 89.145.68.175 - - [17/Aug/2021:11:24:22 +0100] "POST /api/shopify/fetchCustomer HTTP/1.1" 301 169 "-" "axios/0.21.1" "-" 89.145.68.175 - - [17/Aug/2021:11:24:22 +0100] "POST /api/shopify/fetchCustomer HTTP/1.1" 301 169 "-" "axios/0.21.1" "-" 89.145.68.175 - - [17/Aug/2021:11:24:22 +0100] "POST /api/shopify/fetchCustomer HTTP/1.1" 301 169 "-" "axios/0.21.1" "-" 89.145.68.175 - - [17/Aug/2021:11:24:22 +0100] "POST /api/shopify/fetchCustomer HTTP/1.1" 301 169 "-" "axios/0.21.1" "-"
This keeps going until the server eventually returns a 504 gateway timeout.
Is there anything specifically needing done to help this work on a server? I see the demo is working fine, just trying to figure out where we're going wrong.
Thanks,
Lee
The text was updated successfully, but these errors were encountered: