How to Fix Azure Durable Function ConnectionError: HTTPSConnectionPool(host='login.microsoftonline.com', port=443

Carvalho Antunes, Pedro Miguel 20 Reputation points
2023-10-18T11:32:05.23+00:00

Hello,

We are running into an issue in one of our pipelines, when calling an Azure Durable Function. The error is the following:

Orchestrator function 'DurableFunctionsOrchestrator' failed: Activity function 'DurableFunctionActivity' failed:  ConnectionError: HTTPSConnectionPool(host='login.microsoftonline.com', port=443): Max retries exceeded with url:

Our function works in dev, works locally, but not in our production environment. Or, at least, not all the time, sometimes it does, sometimes it does not. We are unable to find the root cause of the problem. Could you help us?

Thank you

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
0 comments No comments
{count} votes

Answer accepted by question author
  1. navba-MSFT 27,605 Reputation points Microsoft Employee Moderator
    2023-10-19T04:53:25.0766667+00:00

    @Carvalho Antunes, Pedro Miguel Welcome to Microsoft Q&A Forum, Thank you for posting your query here!

    I understand that you are encountering an issue when calling an Azure Durable Function in their production environment. The error message they received is ConnectionError: HTTPSConnectionPool(host='login.microsoftonline.com', port=443): Max retries exceeded with url. The the function works in dev and locally, but not in production, and you are unable to find the root cause of the problem.

    Looking at the error message its pretty clear that this issue is related to the failure in establishing the connection due to network issue.

    To troubleshoot this issue, follow the below action plan:

    1. Open the Diagnose and solve problems from your Azure Function portal and select the Diagnostic Tools:
      User's image
    2. Select Network Troubleshooter and select each of the options listed here one by one and check if that shows any issues. This should detect any issues on the network side. Please follow the suggestions it lists.

    User's image

    1. On a side note, if you have Azure Function with Vnet and Private endpoint integrated, follow the steps listed here.

    If none of the above action plan helps, please let me know. I will share the next set of actions and I would be happy to assist you further.

    **
    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.