@Antoine
Thanks for asking question!
To elaborate-
500s normally mean something occurred that prevented your application from loading. For HTTP error 500 it's a generic error message, so it can be difficult to pinpoint the exact cause of the issue. However, there are a few things you can try to diagnose and fix the issue.
First, you can check the logs for your webapp to see if there are any error messages that might give you a clue as to what's causing the issue.
You can access the logs by going to your webapp in the Azure portal, clicking on "App Service logs" under the "Monitoring" section, and then selecting "Application Logging (Filesystem)" and "Detailed Error Messages". Once you've enabled logging, you can download the logs and look for any error messages.
If you're still unable to identify the issue, you can try the following troubleshooting steps:
- Restart your webapp: Sometimes, simply restarting your webapp can resolve the issue. You can do this by going to your webapp in the Azure portal, clicking on "Restart" under the "Overview" section.
- Check your web.config file: The web.config file contains configuration settings for your webapp. If there's an error in the web.config file, it can cause HTTP error 500. You can check your web.config file by going to your webapp in the Azure portal, clicking on "Advanced Tools" under the "Development Tools" section, and then selecting "Go". This will take you to the Kudu console, where you can navigate to the "wwwroot" folder and open the web.config file to check for any errors.
- Check your application code: If there's an error in your application code, it can cause HTTP error 500.
- You can check your application code by going to your webapp in the Azure portal, clicking on "Advanced Tools" under the "Development Tools" section, and then selecting "Go". This will take you to the Kudu console, where you can navigate to the "wwwroot" folder and examine your application code for any errors.
You may refer to: https://learn.microsoft.com/en-us/azure/app-service/overview-diagnostics
https://learn.microsoft.com/en-us/azure/app-service/troubleshoot-http-502-http-503
Please let us know if you have any questions or issue remains.