microsoft / spring-data-cosmosdb

Access data with Azure Cosmos DB
MIT License
94 stars 64 forks source link

Proxy is not working #384

Open upirio opened 5 years ago

upirio commented 5 years ago

Hello, before I used "azure-documentdb" dependency and proxy configuration worked good. But now I need to use "spring-data-cosmosdb" version 3.0.0.M1 and : ConnectionPolicy connectionPolicy = new ConnectionPolicy(); connectionPolicy.setProxy("127.0.0.1",3128); return DocumentDBConfig.builder(host, primaryKey, databaseName) .connectionPolicy(connectionPolicy) .consistencyLevel(ConsistencyLevel.Session) .build();

This configuration is not working. When I try to run application it is logs with error java.net.UnknownHostException.

Please help me.

Thanks

Incarnation-p-lee commented 5 years ago

Thanks a lot, could u please share why u would like to use 3.0.0.M1 ? We may not recommend this version as it depends on RxJava1.x which will EOL.

upirio commented 5 years ago

I try to use RxJava in project, and this only one version with Rx. What can you recommend? Which version? Using a proxy is important to me.

kushagraThapar commented 4 years ago

We recommend using new version of spring-data-cosmosdb.

2.1.8 will be out in next couple of days. 2.2.0 is planned to be released next week.

If you want to try out something right now, please try out 2.2.0.M1: https://mvnrepository.com/artifact/com.microsoft.azure/spring-data-cosmosdb/2.2.0.M1