Reputation: 193
I have an Azure virtual machine, on which a process listens on a certain port. A Node.js application on my local computer is able to connect to this process using the VM's public IP address. But the same Node.js application, deployed as an app service on Azure, is apparently not able to connect using any IP address, despite the fact that the VM allows all incoming traffic on all ports.
(Details: The VM process is running "q" (kdb+), and the Node.js application is using the "node-q" package to connect to it. Both the Azure VM and the Azure app service are Linux, but the local version of the app service is on Windows. The Azure app service is able to connect to my Azure SQL database.)
Any insights into this problem would be appreciated.
Upvotes: 0
Views: 1313
Reputation: 193
It was faulty deployment. I didn't include all dependencies in the upload to Azure. Thank you.
Upvotes: 0
Reputation: 28294
There are many reasons for Bad gateway error, probably you could verify these factors on your side:
sudo netstat -plnt
on Linux VM to check the listening ports. Or, a server can crash if it has exhausted its memory, due to a multitude of visitors on site or a DDOS attack.If you still have any question, feel free to let me know.
Upvotes: 0