pouchdb-community / pouchdb-load

Load documents into CouchDB/PouchDB from a dumpfile
Apache License 2.0
120 stars 33 forks source link

Strings larger than about 800 docs throw a JSON.parse() error #57

Open Chozzle opened 7 years ago

Chozzle commented 7 years ago

I'm trying to pass a string to load() because iOS won't load from a URL. It happens on both Android and iOS. It attempts to parse a mystery line after the last line of the string at 4743 line = JSON.parse(line); but the mystery line appears to be a random part of the data, not split at a line break so it throws JSON Syntax Error. Is it a caching issue?

nolanlawson commented 7 years ago

Can you provide a test case to reproduce? What is the error message?

On Mar 9, 2017, at 5:34 AM, Chozzle notifications@github.com wrote:

I'm trying to pass a string to load() because iOS won't load from a URL. It happens on both Android and iOS. It attempts to parse a mystery line after the last line of the string at 4743 line = JSON.parse(line); but the mystery line appears to be a random part of the data, not split at a line break so it throws JSON Syntax Error. Is it a caching issue?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/nolanlawson/pouchdb-load/issues/57, or mute the thread https://github.com/notifications/unsubscribe-auth/AARUwrPDWpH_JPx_iLEC9O-WFDRKq4biks5rj__ugaJpZM4MYFmv.