I am setting up a microservice. The code is working fine on localhost. To make it accessible to the other computers too I tried npm's localtunnel. Sometimes it used to give 404 error but it was working fine for straight 2 days. But suddenly It started giving 502 'tunnel server offline: Request failed with status code 502, retry 1s' error.
I uninstalled and re-installed localtunnel, Rechecked my code on localhost, To fix 502 error, I cleared the browser's cache and checked firewall status.
While setting up localtunnel I ran following commands on terminal:npm install -g localtunnel, lt --port 3002 --subdomain user, sudo npm install --save-dev forever.
I expect the output of lt --port 3002 --subdomain user to be 'your url is: https://user.localtunnel.me', but actual output is 'tunnel server offline: Request failed with status code 502, retry 1s'