Skip to content
This repository has been archived by the owner on Aug 29, 2024. It is now read-only.

Proxy is not working #384

Open
upirio opened this issue Jun 28, 2019 · 3 comments
Open

Proxy is not working #384

upirio opened this issue Jun 28, 2019 · 3 comments

Comments

@upirio
Copy link

upirio commented Jun 28, 2019

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
Copy link
Contributor

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
Copy link
Author

upirio commented Jun 28, 2019

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
Copy link
Collaborator

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

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants