Code Monkey home page Code Monkey logo

Comments (5)

dalgibbard avatar dalgibbard commented on July 4, 2024

I'd recommend loading the JSON in a JSON-friendly IDE, or sticking it through an online JSON validator to find out where the issue is.
My initial thinking is that you seem to have strange HTML character database names... What other strange stuff might be in that dump that needs escaping 😅

from couchdb-dump.

cecchisandrone avatar cecchisandrone commented on July 4, 2024

Well, the dump seems to be correct, I can open and validate it in VSCode. If I increase lines to 40000 it is imported correctly, so the problem is definitely a problem with the split.
DB name is also correct (it has some escaped chars).
Do you know how the split files are created normally? Should they be valid JSON files or not?

from couchdb-dump.

dalgibbard avatar dalgibbard commented on July 4, 2024

Yes, split files should be valid JSON, as they're loaded back into the DB during the restore process file-by-file (rather than being stitched back and inserted as a huge amount for example).

from couchdb-dump.

cecchisandrone avatar cecchisandrone commented on July 4, 2024

I found the reason for the issue. Basically, I was post-processing dump with jq and it was pretty-printing the file, causing couchdb-dump to get lost when splitting it in chunks. Thank you for your help in any case 😉

from couchdb-dump.

dalgibbard avatar dalgibbard commented on July 4, 2024

All good then 😁

from couchdb-dump.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.