Skip to content
This repository was archived by the owner on Jun 23, 2020. It is now read-only.
This repository was archived by the owner on Jun 23, 2020. It is now read-only.

Restoring database with 2.X Mongo Driver version fails #8

@talbronfer

Description

@talbronfer

I've tried dumping & restoring a database to/from a file using the 2.X Mongo Driver. The result is the following error:

error parsing element 0 of field documents :: caused by :: wrong type for '0' field, expected object, found 0: BinData(0, 5D000000075F696400559148BBC695410D36B301C1106C617465737452656C656173650001000000026E616D6500190000004D6F766552656C65617365436F6E666967757261...)

When forcefully downgrading to version 1.4.32 of the Mongo Driver, the restore process completes successfully. I found this link in Mongo's JIRA.

I don't know if this can be easily fixed, but perhaps you can change the package version for the Mongo driver so that it's explicitly 1.X, since now npm install automatically installs 2.X.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions