Azure Service Bus intermittent connection issue

Creid Lee 1 Reputation point
2023-05-04T05:17:29.4033333+00:00

Asp.net core web API using Azure SDK with Service Bus default options encountered Service Bus random connection issue. The error is "A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond". Azure portal shows the Service Bus service was available when the connection issue took place. With checking quotas document, no quotas are exceeded.

I have no clue what happened. What could be the possible root cause?

Azure Service Bus
Azure Service Bus
An Azure service that provides cloud messaging as a service and hybrid integration.
542 questions
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 67,971 Reputation points
    2023-05-08T10:40:21.8633333+00:00

    @Creid Lee Thanks for reaching out.

    The error message you are seeing indicates that there was a connection issue between your ASP.NET Core Web API and the Azure Service Bus. This can happen for a variety of reasons, mainly network issues, firewall settings, connection string or issues with the Azure Service Bus itself and I will suggest you to review the below possible root causes and solutions:

    1. Network issues: The error message you are seeing can occur if there are network issues between your ASP.NET Core Web API and the Azure Service Bus. You can try checking your network settings and firewall settings to ensure that they are configured correctly.
    2. Azure Service Bus issues: The error message you are seeing can also occur if there are issues with the Azure Service Bus itself. You can check the Azure Service Bus status page to see if there are any known issues or outages.
    3. Connection string issues: The error message you are seeing can also occur if there are issues with the connection string used to connect to the Azure Service Bus. You can try checking your connection string to ensure that it is correct and up to date. Please validate whether there are no special characters added while copy pasting the connection string.

    In case if you are still facing the issue and not able to find the root cause of the issue then please let me know so I can connect with you offline to review and assist you further.

    0 comments No comments