@Ali Akarsu , Apologies for the delayed response from over the weekend. I understand that the issue happens randomly.
You may leverage App Service diagnostics from Azure Portal> Navigate to your App Service app in the Azure Portal. (screenshot below). https://learn.microsoft.com/azure/app-service/overview-diagnostics
Also, review Enable and review logs to fetch more details about the error.
To isolate the issue, scale-up your App Service and observe the behavior of the app.
Checkout these referenced docs for more info:
Best Practices for Azure App Service
Troubleshooting intermittent outbound connection errors in Azure App Service
Kindly let us know, I'll follow-up with you further.