{"action":"closed","issue":{"url":"https://api.github.com/repos/conor-mac-aoidh/express-pouchdb-replication-stream/issues/3","labels_url":"https://api.github.com/repos/conor-mac-aoidh/express-pouchdb-replication-stream/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/conor-mac-aoidh/express-pouchdb-replication-stream/issues/3/comments","events_url":"https://api.github.com/repos/conor-mac-aoidh/express-pouchdb-replication-stream/issues/3/events","html_url":"https://github.com/conor-mac-aoidh/express-pouchdb-replication-stream/issues/3","id":110811084,"number":3,"title":"error [RangeError: Maximum call stack size exceeded]","user":{"login":"ronyrun","id":7273443,"avatar_url":"https://avatars.githubusercontent.com/u/7273443?v=3","gravatar_id":"","url":"https://api.github.com/users/ronyrun","html_url":"https://github.com/ronyrun","followers_url":"https://api.github.com/users/ronyrun/followers","following_url":"https://api.github.com/users/ronyrun/following{/other_user}","gists_url":"https://api.github.com/users/ronyrun/gists{/gist_id}","starred_url":"https://api.github.com/users/ronyrun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ronyrun/subscriptions","organizations_url":"https://api.github.com/users/ronyrun/orgs","repos_url":"https://api.github.com/users/ronyrun/repos","events_url":"https://api.github.com/users/ronyrun/events{/privacy}","received_events_url":"https://api.github.com/users/ronyrun/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-10T19:04:42Z","updated_at":"2015-10-11T10:43:17Z","closed_at":"2015-10-11T10:43:17Z","body":"Hello,\r\n\r\nWhen Trying to use your lib, I connect it to a Cloudant DB.\r\n```\r\napp.use('/api/couchdb/:db', repStream({\r\n    url     : 'https://login:pwd@myapp.cloudant.com',\r\n    dbReq   : true\r\n}));\r\n```\r\nI have this error : \r\n\r\n*error [RangeError: Maximum call stack size exceeded]*\r\n\r\nI changed in the index.js\r\n```\r\nreturn db.dump(res, this.replicationOpts)\r\n```\r\nto \r\n```\r\nreturn db.dump(res, this.replicationOpts)\r\n        .then(function(res){\r\n          console.log(\"success\",res);\r\n        }).catch(function(e){\r\n          console.log(\"error\",e);\r\n        });\r\n```\r\n\r\nDo you have any idea of what I dod wrong ?\r\n\r\nThank you for your work !"}}