Troubleshooting App Gateway failure with Spring boot application through Websocket

Hello Guys, There is an application which is a spring boot configured through WebSocket and when it coming through app gatway it was failing. Any steps how to troubleshoot the app gateway??

Potentially if it helps ? https://docs.microsoft.com/en-us/azure/application-gateway/application-gateway-troubleshooting-502