简体   繁体   中英

Resolve and Troubleshoot Azure web App 500 Internal Server Error Timeout Issue

We have an web api hosted on Azure Web APp. We are getting intermittently 500 Internal Server Error Timeout Issue. We have appinsights in place which is used for Exception Logging but nothing is getting logged for this issue. How we can troubleshoot and fix this issue?

You could consider the following reasons for timeout errors: Web App takes too long to respond for a request/response when connecting to database/another server.

I would suggest you add SCM_COMMAND_IDLE_TIMEOUT setting in your Web App 'App settings' configuration with a value of your choice.

For example: SCM_COMMAND_IDLE_TIMEOUT = 3600

By default, Web Apps are unloaded if they are idle for some period of time. This lets the system conserve resources. In Basic or Standard mode, you can enable 'Always On' to keep the app loaded all the time.

You may also check the diagnostic log stream to get more details on this issue and the blog post for Troubleshooting Azure App Service Apps Using Web Server Logs .

Hope this helps.

I think this issue might caused due to these reasons:

1.Due to Network problem of your server

2.Due to server request time out

aI think you can once use Await/Abort in your code for asynchronous the request purpose,
or

b.Increase the request time of your browser

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM