Azure functions Azure函数-获取java.lang.IllegalStateException:连接cosmos客户端时阻止读取超时120000毫秒

Azure functions Azure函数-获取java.lang.IllegalStateException:连接cosmos客户端时阻止读取超时120000毫秒,azure-functions,azure-cosmosdb,azure-aks,Azure Functions,Azure Cosmosdb,Azure Aks,正在尝试使用以下方式连接到cosmos数据库: CosmosClient client = new CosmosClientBuilder() .endpoint("endpoint") .key("key") .consistencyLevel(ConsistencyLevel.EVENTUAL) .buildClient(); 连接时,获取错误:java.la

正在尝试使用以下方式连接到cosmos数据库:

CosmosClient client =
      new CosmosClientBuilder()
          .endpoint("endpoint")
          .key("key")
          .consistencyLevel(ConsistencyLevel.EVENTUAL)
          .buildClient();

连接时,获取错误:java.lang.IllegalStateException:阻塞读取超时120000毫秒

您使用的是哪个java SDK版本?@MatiasQuaranta我获取了相同的错误。我使用的是SpringDataCosmos3.2.0,它使用了CosmosJavaSDKv4。sar,你得到修复了吗?我改变了将客户端初始化为singleton patternhello@sar的方式,你介意提供更多关于如何使其工作的细节吗?这里也有同样的问题。谢谢