-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
separating out design documents not working on OS X #17
Comments
Do you have any '_design' docs in your DB? They normally at the start or end of the dumped JSON if that helps. |
Also; try running with 'bash -x <command_here>' to get some debug info :) |
I suspect I hit this issue in a recent run; and it may be a different issue; the actual problem is when the dataset is small enough to be imported in a single job without needing to split it; it doesn't seem to format the file appropriately. If/when I do my next load of dev on this code, i'll look to identify and sort this too :) One thought; if the design docs are at the end (with only the footer after it), and we remove that, the last document should have the final comma stripped. Could be something as simple as this throwing off the parser. |
OK so I spent some time testing/debugging this - and I can't reproduce it.
So with:
@danielebailo I would suggest we can close this for now, and re-open if it can be reproduced, complete with the output from 'bash -x'. |
Note that i've got a merge pending to fix the incorrect detection of _design docs in #23 |
Darren, Daniele http://www.danielebailo.it/ http://danielebailo.wordpress.com/ 2015-05-07 18:15 GMT+02:00 Darren Gibbard notifications@github.com:
|
Cheers dude :D |
.. INFO: Separating Design documents ... INFO: Duplicating original file for alteration ... INFO: Stripping _design elements from regular documents ... INFO: Fixing end document ... INFO: Inserting Design documents ... INFO: Successfully imported 0 Design Documents ... INFO: Small dataset. Importing as a single file. {"error":"bad_request","reason":"Missing JSON list of 'docs'"}
This is the output i'm getting. I'm wondering it there is something wrong with the sed command?
The text was updated successfully, but these errors were encountered: