Skip to content

Import buttons don't work #128

@malemburg

Description

@malemburg

I'm tying to import an export made using mongo express, but the logs always show:

mongo-express  | TypeError: Spread syntax requires ...iterable[Symbol.iterator] to be a function
mongo-express  |     at exp.importCollection (file:///app/lib/routes/collection.js:512:16)
mongo-express  |     at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)
mongo-express  |     at next (/app/node_modules/express/lib/router/route.js:144:13)
mongo-express  |     at mongoMiddleware (file:///app/lib/router.js:263:5)
mongo-express  |     at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)
mongo-express  |     at next (/app/node_modules/express/lib/router/route.js:144:13)
mongo-express  |     at Route.dispatch (/app/node_modules/express/lib/router/route.js:114:3)
mongo-express  |     at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)
mongo-express  |     at /app/node_modules/express/lib/router/index.js:284:15
mongo-express  |     at param (/app/node_modules/express/lib/router/index.js:365:14)

and the browser gets a 400 back.

I have tried this with the import buttons on the collections page, as well as the import buttons on the individual collections. Both show the same behavior.

I've tried this with the 1.0 and 1.0-20 docker images. Both have the same problem.

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