error: The underlying connection was closed: An unexpected error occurred on a send

Francesco Giorgio 11 Reputation points
2021-04-19T07:48:34.147+00:00

I am experiencing the following error, when doing translations:
The underlying connection was closed: An unexpected error occurred on a send

This has happened suddenly without any change by my side of the script configuration.

I also can read in Resource Integrity: Not possible to determine the status of integrity of the resource Cognitive Services at the moment.

I am wondering if this relates to a known Microsoft Azure issue or if I should do any fix on my side.

Thank you

Azure AI Search
Azure AI Search
An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.
702 questions
Azure Translator
Azure Translator
An Azure service to easily conduct machine translation with a simple REST API call.
340 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,234 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,119 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,368 questions
{count} vote

3 answers

Sort by: Most helpful
  1. Stephen 11 Reputation points
    2021-04-19T20:28:03.687+00:00

    After MS support pointed us in the direction of TLS, adding the following line fixed the error for us:

    System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;
    

    Still don't understand why after years of working fine today was the day it needed to be changed.

    Edit: While the above definitely fixed the error, the line we ended up using was:
    System.Net.ServicePointManager.SecurityProtocol |= System.Net.SecurityProtocolType.Tls12;

    2 people found this answer helpful.

  2. Anindya Chakraborty (IN) 6 Reputation points
    2022-06-06T10:50:04.74+00:00

    Facing this issue to connect from PBI ? anyone can help me

    1 person found this answer helpful.

  3. Jeffery Decker 6 Reputation points
    2022-12-27T20:31:46.627+00:00

    I, too, am having this problem via PBI service through SharePoint online. Any updates?

    1 person found this answer helpful.
    0 comments No comments