Azure App Service Node JS Request Forwarding Failed

Jigar Patel 41 Reputation points
2021-01-16T17:04:27.487+00:00

I am working on a node js and express server. I tested my server http routes on localhost and they all worked perfectly. If there were bugs with my code then it wouldn't work locally. So, I had no bugs.

Then I deployed my server app in production to azure app service. I tested my routes in production to ensure they worked fine. The issue was that the requests for one of the routes wasn't responding even though it worked fine locally. Below is the error message I got.

/route-1 (worked)
/route-2 (didn't respond)

Error Message: Failed to forward request to application. Encountered a System.Net.Http.HttpRequestException exception after 120749.142ms with message: An error occurred while sending the request.. Check application logs to verify the application is properly handling HTTP traffic.

I was able to fix the issue by simply renaming the name of the route from /route-xyz to /route-abc then re-deploying my applicaiton.

My question is why did this issue happen? I still don't understand why a simple name change & re-deployment fixed the issue? How can I prevent this from happening again?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,876 questions
{count} votes