Share via

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.

Azure Translator in Foundry Tools
Developer technologies | .NET | .NET Runtime
Developer technologies | C#
Developer technologies | 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.

Foundry Tools
Foundry Tools

Formerly known as Azure AI Services or Azure Cognitive Services is a unified collection of prebuilt AI capabilities within the Microsoft Foundry platform


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. Anonymous
    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

  3. 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.

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.