nosql - Error while replicating couch db -


when replcating couch db remote system local system through _changes feed, error

`05-04 19:19:48.089: error/couchdb(984): [error] [<0.115.0>] error in replication `a4b53e74a33b773bbca688073b6bbe0d+continuous` (triggered document `cloud2airline`): {worker_died,<0.532.0>,         {process_died,<0.547.0>,         {function_clause,         [{string,tokens1,[undefined,";",[]]},         {mochiweb_util,parse_header,1},         {couch_httpd,get_boundary,1},         {couch_httpd,parse_multipart_request,3},         {couch_api_wrap,'-open_doc_revs/6-fun-1-',4},         {couch_api_wrap_httpc,process_stream_response,5},         {couch_api_wrap,'-open_doc_revs/6-fun-2-',4}]}}}         restarting replication in 5 seconds.` 

node js proxy code

`'use strict'; /*!  * middleware forwarding request couchdb.  */  /**  * module dependencies.  */  var httpproxy = require('http-proxy'),     util = require('./util');  module.exports = function(couch) {     var proxy = new httpproxy.httpproxy(couch),         couchtarget = couch.target;     httpproxy.setmaxsockets(200);      return function(req, res, next) {         req.headers['host'] = couchtarget.host + ':' + couchtarget.port;         req.headers['authorization'] = couch.credentials;         req.headers['x-forwarded-ssl'] = util.issecureforwardedrequest(req);         var forwardedfor = req.headers['x-forwarded-for'];         req.headers['x-real-ip'] = forwardedfor             ? forwardedfor.split(',',1)[0]             : req.connection.remoteaddress;         req.url = couch.path + req.url;         console.log(req.headers['x-forwarded-for']);         console.log(req.headers['x-real-ip']);         console.log(req.headers['x-forwarded-ssl'] );         console.log(couchtarget.host + ":" + couchtarget.port + req.url);         return proxy.proxyrequest(req, res);     } }` 


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -