• Register
0 votes
43 views

Problem :

I am very new to Azure. Currently I am trying to host my azure website and I have already tried to troubleshoot for the few days, but still I am facing the same error as below:

“502 Web server received an invalid response while acting as a gateway or proxy server.”

8 4 2
2,300 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

I have gone through your question related to Azure and I know how to fix the issue.

These 502 errors are not visible in the IIS logs as they are always thrown by your front end server which are basically try to forward your requests to a worker who is hosting your site and you can find many reasons why your front end is returning 502 error.

I had setup with my web servers behind the azure application gateway out of them some servers were working properly but traffic to one of those server was having a 502 issue. So I just followed below approach:

I simply checked my Backend health on my application gateway and I found that one of the server couldn’t be reached.So I tried to open a backend server url on my cloud VM a root of my website can't be reached. But my App was running. It turned out a gateway was supposed to ping a port 80 of a target machine and then I just disabled a root website on a target server. So my gateway assumed my server is dead and just refused to do a redirect.

5 2 1
4,980 points

Related questions

0 votes
1 answer 3 views
3 views
Problem: I am stuck during learning as I have already mentioned in my question someone please cooperate me to continue my project-Thanks
asked Mar 24 shamimkhan 15.1k points
0 votes
1 answer 2 views
2 views
Problem: I am not able to connect my iPhone 4 to iTunes. It says "iTunes could not connect to the iPhone because an invalid response was received from the device
asked 2 days ago ummesalma 22k points
1 vote
1 answer 3 views
3 views
Problem: Any ideas on what I need to do to fix this? itunes could not connect to this iphone because an invalid response was received from this device
asked 2 days ago MUHAMMAD MUNEEB 80k points
0 votes
1 answer 2 views
2 views
Problem: I need assistance in resolving this problem: itunes could not connect to the iphone because an invalid response was received from the device.
asked 3 days ago rakib1 50.9k points
0 votes
1 answer 3 views
3 views
Problem: Please help me fix this dilemma: itunes could not connect to the iphone because an invalid response was received
asked 5 days ago tuhin1 46.8k points
0 votes
1 answer 3 views
3 views
Problem: Help me “Itunes could not connect to the iphone because an invalid response was received from the device”?
asked 5 days ago tuhin1 46.8k points
0 votes
1 answer 2 views
2 views
Problem: I am unable to understand this problem .. Please suggest me a better solution to solve it .. the server returned an invalid or incomplete response
asked 3 days ago Ifra 24.4k points
1 vote
1 answer 1 view
1 view
Problem: How to fix this error : itunes invalid response was received from the device
asked 2 days ago MUHAMMAD MUNEEB 80k points
0 votes
1 answer 459 views
459 views
Problem : I am trying to do the file upload & enter the data task into my MongoDB using a flask but I had below error when I filled my form & upload my image: “Bad Request The browser (or proxy) sent a request that this server could ... mypassword, 'email': myemail, 'img_name': file_name})         return render_template('index.html')     else:         return render_template('index.html')
asked Jan 22, 2020 jwilliam 3.9k points
0 votes
1 answer 3 views
3 views
Problem: I have a problem while connecting to github from my PC, using git. System Win 7. when I try to push or clone my repo, I receive fatal: unable to access '<repo githup link>' Received HTTP code 407 from proxy after CONNECT
asked Mar 30 ummesalma 22k points