Java application on Azure App Service - 200 Web App Error

Aayush Suresh Jain 146 Reputation points
2023-12-22T08:19:47.1666667+00:00

I have a Java application hosted on Azure App Service, with three different App Services for DEV, Test, and Production environments. Even though all three have the same code deployed, the Production instance has started giving an error where image HTML content is being added to Javascript files that causes strange behavior and prevents some parts of the application from loading correctly. How can I fix this, considering that there are no logged errors on Application Insights, no changes have been made to the application, and this is a problem unique to the Production instance?

User's image

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,972 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 30,281 Reputation points Microsoft Employee Moderator
    2023-12-29T22:30:56.02+00:00

    Hi @Aayush Suresh Jain

    Double check your application runtime settings for the production environment. A page like this indicates the platform attempted to start your application but the underlying "code" did not accept HTTP requests. You can also utilize the Log Stream blade under Monitoring menu section, see https://learn.microsoft.com/en-us/azure/app-service/configure-language-java?pivots=platform-linux#logging-and-debugging-apps, restart the application, and observe the startup behavior for your application. You application could be failing to load due to a missing module that's available on the other environment.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.