App service HTTPS random errors

Damien Trut 1 Reputation point
2020-06-24T12:19:36.93+00:00

We have an app service that works well for a few months now.
For a few hours, we have random errors (1 error for 5 success approximatively) when we try to call it with an HTTPS connection. It works well with an HTTP connection.
We have not any error log. Curl returns CURLE_SSL_CONNECT_ERROR.
I hope I will find help here!

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,913 questions
{count} votes

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 21,766 Reputation points
    2020-06-29T08:18:43.8+00:00

    Thanks for asking question! You can inspect the log files from the browser at https://<app-name>.scm.azurewebsites.net/api/logs/docker for more details on this.

    You may check if CURLOPT_SSL_VERIFYPEER option is enabled. As when making request with using cURL from PHP code regular http:// calls everything, but for https:// you need to configure few things on App Service manually for it to work correctly.

    You may refer to this article: Configure a Windows PHP app for Azure App Service

    Similar SO Issues below might be helpful:
    https://stackoverflow.com/questions/33298712/how-to-debug-curl-in-php-and-azure
    https://stackoverflow.com/questions/28419197/how-to-debug-or-fix-curl-errno-35/28420871

    Disclaimer: This response contains a reference to a third-party World Wide Web site. Microsoft is providing this information as a convenience to you.

    0 comments No comments

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.