question

SachinPrajapati-2811 avatar image
0 Votes"
SachinPrajapati-2811 asked azure-cxp-api edited

Azure cosmosdb connection

We are facing below connection issue with Azure cosmos DB,


Exception type : System.Net.Sockets.SocketException

Failed method : Gremlin.Net.Driver.WebSocketConnection+<ConnectAsync>d__4.MoveNext

Is this something happen due to low RUs in cosmos db ?

azure-cosmos-db
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Did you get this issue resolved or are you still needing assistance to help resolve it? If you were able to get this resolved, can you let us know that it is resolved. Thank you!

0 Votes 0 ·

1 Answer

mappie-kochi avatar image
1 Vote"
mappie-kochi answered

The content of the error is a socket error. Therefore, it is unlikely that the low RU is the cause.
How about confirming TCP socket communication?

There is also a similar question on Stack Overflow.

  • azure-cosmos-db-throwing-socket-exceptions

    By default, Windows may hold this connection in this state for 240 seconds. There is a limit to how quickly OS can open new sockets. All this may lead to exception.
    System.Net.Sockets.SocketException


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.