Closed Coniglioz closed 8 years ago
The error is: TypeError: Cannot read property 'toString' of undefined at generateReplicationId on line 2272 of pouchdb.load.js
This happens when you load the dump using a view as filter, for example:
db.load('http://example.com/my-dump-file.txt', { proxy: 'http://mysite.com/mydb', filter: '_view', view: 'mydesign/myview' })
Suggested solution Complete the "replIdOpts" object passed to "genReplicationId" on line 67 by adding the "view" attribute.
... if (opts.view) { replIdOpts.view = opts.view; } ...
Yup, your fix looks correct to me. Needs to be added to these lines and also needs another test. Want to contribute it? :D
Ok! I'll do it :D
a99028a400584b480a1adabe707bad9a50d07d10
The error is: TypeError: Cannot read property 'toString' of undefined at generateReplicationId on line 2272 of pouchdb.load.js
This happens when you load the dump using a view as filter, for example:
Suggested solution Complete the "replIdOpts" object passed to "genReplicationId" on line 67 by adding the "view" attribute.