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

BSON field 'insert.documents.0' is the wrong type 'array', expected type 'object' #1351

Open
samuelbaizg opened this issue Dec 5, 2023 · 0 comments

Comments

@samuelbaizg
Copy link

I received below error when I import the file that is exported by the export function in web page,
MongoServerError: BSON field 'insert.documents.0' is the wrong type 'array', expected type 'object'
at Connection.onMessage (/node_modules/mongodb/lib/cmap/connection.js:231:30)
at MessageStream. (/node_modules/mongodb/lib/cmap/connection.js:61:60)
at MessageStream.emit (node:events:517:28)
at processIncomingData (/node_modules/mongodb/lib/cmap/message_stream.js:125:16)
at MessageStream._write (/node_modules/mongodb/lib/cmap/message_stream.js:33:9)
at writeOrBuffer (node:internal/streams/writable:392:12)
at _write (node:internal/streams/writable:333:10)
at Writable.write (node:internal/streams/writable:337:10)
at Socket.ondata (node:internal/streams/readable:809:22)
at Socket.emit (node:events:517:28) {
ok: 0,
code: 14,
codeName: 'TypeMismatch',
[Symbol(errorLabels)]: Set(0) {}
}
POST /db/notebooks/import/notebook 500 16.904 ms - 12

the mongo express is installed using docker with tag mongo-express:1.0.0-18 and mongo version is installed with docker with tag mongo:7.0.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant