I am using .net core Couchbase Mobile Lite client 2.5 on Windows 10. My machine is part of my corporate network while the Sync Gateway runs in our companies openshift platform in another network.
From my machine I can reach the Sync Gateway public Admin API on port 4985 using http successfully! If I call https://my-sync-gateway/mydb in the browser I get:
{"ADMIN":true,"mydb":"Welcome","vendor":{"name":"Couchbase Sync Gateway","version":"2.5"},"version":"Couchbase Sync Gateway/2.5.0(271;bf3ddf6) EE"}
If I try to replicate my local 'mydb' like this:
_urlEndpoint = new URLEndpoint(new Uri($"wss://my-syncg-gateway:4985/mydb"));
_replicatorConfig = new ReplicatorConfiguration(this._database, _urlEndpoint);
_replicatorConfig.Authenticator = new SessionAuthenticator(sessionId);
_replicatorConfig.ReplicatorType = ReplicatorType.PushAndPull;
_replicatorConfig.Continuous = true;
_replicator = new Replicator(_replicatorConfig);
_replicator.AddChangeListener(this.ReplicationEventHandler);
then I get an Exception in function CreateProxyAsync(Uri destination) class WindowsProxy.cs line:
return Task.FromResult(new WebProxy(new Uri($"http://{url}"), bypass?.Contains("<local>") ?? false, bypass));
the exception is caused by null value of url in new Uri($"http://{url}")
Everything works find if my client and sync gateway are located in the same network.
Unfortunately I didn't find any possibility to configure the ReplicationConfiguration class to pass through proxies.
How can the client be configured correctly to pass through proxies?
Is my problem above related to this issue: https://github.com/couchbase/couchbase-lite-net/issues/1002 ?