I am dropping this here as a reminder for my future self and for anyone that might encounter this weird error.
At work we are using nodejs and serverless framework to build a backend application.
To test it we just run it locally with
sls offline start --port 3001
The info we found googling were mostly related to Webpack or Angular, which we are not using but had in common some problems in the configuration of etc/hosts.
Confronting that configuration on my workstation and his laptop at home, I had:
where his contained info about OpenVN Client SSL but nothing about localhost. Probably when he configured the VPN to work remotely he overwrote the previous content, he added to his file this one line:
and everything started to work.
- To edit the file: go to home directory (
cd ~) and open vim
sudo vi /etc/hoststhen press I and start editing the file.
- To save and exit vim: press ESC then
:q!if you just want to exit without saving. More cheatsheets here