Skip to content
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

Unable to import its own export file #1225

Open
Murph4242 opened this issue Jul 9, 2023 · 9 comments
Open

Unable to import its own export file #1225

Murph4242 opened this issue Jul 9, 2023 · 9 comments
Labels
needs_confirmation old_docker_version Will be fixed in a newer version of Docker image
Milestone

Comments

@Murph4242
Copy link

"Import --mongoexport json" fails to import using both "export standard" and "export --jsonArray" exported files.

It also fails to import the file exported by MongoDB Compass using its "Export the full collection" option.

The "New Document" option also fails to create a document copied from the exported files.

There are no on-screen errors presented in any import attempt.

@rtritto
Copy link
Member

rtritto commented Jul 30, 2023

@Murph4242 what version are you using?
On master branch both exports work with import.

@vorou
Copy link

vorou commented Aug 8, 2023

Can repro with the docker image version 0.54.
In the browser console I see a 400 with "Bad file".

@hsiangjenli
Copy link

I've encountered the same issue while using a Docker image built with the 'latest' version.

@rtritto
Copy link
Member

rtritto commented Aug 31, 2023

It's fixed in #996, so in versions >= 1.0.1.

@shakaran @BlackthornYugen this issue is related to the Docker Image not updated (latest version is 1.0.0-alpha).
This kind of issues should be closed as fixed or to categorize, at least, add [Docker] to title and/or create a label.

@tranduyhung
Copy link

I cloned the repository, run the development build and see this problem as well. The import response is 400, no documents are imported.

@rtritto
Copy link
Member

rtritto commented Sep 12, 2023

I cloned the repository, run the development build and see this problem as well. The import response is 400, no documents are imported.

@tranduyhung did you import the Export --jsonArray file?

@tranduyhung
Copy link

I cloned the repository, run the development build and see this problem as well. The import response is 400, no documents are imported.

@tranduyhung did you import the Export --jsonArray file?

Yes, I tried both standard and JSON array export.

@rtritto
Copy link
Member

rtritto commented Sep 13, 2023

Please can you write the error in logs?

@rtritto rtritto added the old_docker_version Will be fixed in a newer version of Docker image label Oct 21, 2023
@shakaran shakaran added this to the 1.1 milestone Feb 17, 2024
@xTudoS
Copy link
Contributor

xTudoS commented Mar 9, 2024

Please can you write the error in logs?

I have tested in current master version and only error is when I try to import the "standard export" (see screenshot below)

image

Error message in my terminal:
image

but if I import the "jsonArray" version, it works as expected.

image image

I don't know if it was supposed to work with both versions, but I think that a error message to tell the user what happened could be a way to solve this, once only is supported jsonArray version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs_confirmation old_docker_version Will be fixed in a newer version of Docker image
Projects
None yet
Development

No branches or pull requests

7 participants