Share via

Azure functions SSL issue with Cosmos DB in .net 6 ?

Thirupathi Janga 1 Reputation point
2022-07-28T11:04:09.467+00:00

Hello Team, 

I am facing one issue the new .net version 6 and azure function v4. Could you please help me with this?

I have one azure function application which uses Cosmos DB.
Recently I have upgraded from .net core v3.0.1 to .net 6 and upgraded the azure function from v3 to v4.

So, in my application, while trying to connect to Cosmos DB, I am facing an issue saying "The SSL connection could not be established" and the inner exception as below "Received an unexpected EOF or 0 bytes from the transport stream." And to connect Cosmos Db we use VPN.

But when I downgrade my version of both azure function and .net core I am able to receive the response successfully.

Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.

Azure Cosmos DB
Azure Cosmos DB

An Azure NoSQL database service for app development.

Developer technologies | .NET | .NET Runtime

1 answer

Sort by: Most helpful
  1. Anonymous
    2022-07-29T08:18:13.227+00:00

    Hi @Thirupathi Janga

    I saw a similar github issue, hope it can help you. You can try to solve it by firewall settings.

    SSL connection error after upgrading to v4 #8168

    Best Regards
    Jason

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