You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Eliseo Soto (Updated) (JIRA)" <ji...@apache.org> on 2011/11/01 00:37:32 UTC
[jira] [Updated] (COUCHDB-1327) CLONE - remote to local replication
fails when using a proxy
[ https://issues.apache.org/jira/browse/COUCHDB-1327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eliseo Soto updated COUCHDB-1327:
---------------------------------
Description:
The following is failing for me:
curl -X POST -H "Content-Type:application/json" http://localhost:5984/_replicate -d '{"source":"http://isaacs.iriscouch.com/registry/", "target":"registry", "proxy": "http://wwwgate0.myproxy.com:1080"}'
This is the error:
{"error":"json_encode","reason":"{bad_term,{nocatch,{invalid_json,<<>>}}}"}
I have no clue about what's wrong, I can curl http://isaacs.iriscouch.com/registry/ directly and it works.
was:
We have been trying to setup a remote to local replication through a proxy.
All requests send to the proxy server, except for the request to the _changes feed, which has been send to the target host directly.
We used the following request using curl to establish the replication:
curl -X POST http://localhost:5984/_replicate -H "Content-Type: application/json" -d '{"target":"foo","source":"http://10.0.1.146:5981/repl_test", "proxy":"http://10.0.2.123:8888"}'
The request that was not send to the proxy was the following:
GET /repl_test/_changes?style=all_docs&heartbeat=10000&since=0&feed=normal HTTP/1.1
Affects Version/s: (was: 1.0.1)
1.1.2
> CLONE - remote to local replication fails when using a proxy
> ------------------------------------------------------------
>
> Key: COUCHDB-1327
> URL: https://issues.apache.org/jira/browse/COUCHDB-1327
> Project: CouchDB
> Issue Type: Bug
> Components: Replication
> Affects Versions: 1.1.2
> Reporter: Eliseo Soto
>
> The following is failing for me:
> curl -X POST -H "Content-Type:application/json" http://localhost:5984/_replicate -d '{"source":"http://isaacs.iriscouch.com/registry/", "target":"registry", "proxy": "http://wwwgate0.myproxy.com:1080"}'
> This is the error:
> {"error":"json_encode","reason":"{bad_term,{nocatch,{invalid_json,<<>>}}}"}
> I have no clue about what's wrong, I can curl http://isaacs.iriscouch.com/registry/ directly and it works.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira