"HTTPSConnectionPool Max retries exceeded with url error" when deploying azure function app.

Mustafa Hussain 0 Reputation points
2023-07-03T03:37:46.24+00:00

I am trying to deploy functionapp using the CLI by running the command

az functionapp deployment source config-zip -g Development -n <function-name> --src <output-directory.zip>

but keep getting this error

HTTPSConnectionPool(host='<function-name>.scm.azurewebsites.net', port=443): Max retries exceeded with url: /api/zipdeploy?isAsync=true (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:2396)')))

Certificate verification failed. This typically happens when using Azure CLI behind a proxy that intercepts traffic with a self-signed certificate. Please add this certificate to the trusted CA bundle. More info: https://docs.microsoft.com/cli/azure/use-cli-effectively#work-behind-a-proxy.

I am not using a proxy server and not sure why I am getting this error. Any ideas would be greatly appreciated.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,566 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
326 questions
{count} votes

1 answer

Sort by: Most helpful
  1. 晓月 陈 0 Reputation points
    2023-07-21T05:24:31.4566667+00:00

    User's image

    I was facing the similar error . It turns out “Az upgrade” fixing this issue. the previous version of Az Cli is "2.30.0".Refer this https://github.com/Azure/azure-cli/issues/20728

    0 comments No comments