mongo-express-docker icon indicating copy to clipboard operation
mongo-express-docker copied to clipboard

Can't Import .csv - Docker logs return 400

Open frbimo opened this issue 5 years ago • 3 comments

When i click import button, and choose .csv file to import, it does nothing. I tried to refresh the page but still nothing in the collection. I checked the docker logs:

 POST /db/sc/import/kay 400 14.482 ms - 8
 POST /db/sc/import/kay 400 26.983ms - 8
 POST /db/sc/import/kay 400 15.84 5 ms - 8

frbimo avatar Dec 07 '18 08:12 frbimo

The issue seems bigger than that. Personnally, I can't import from any file at all. Export files are well generated, though any of them has a file extension. But I can't use any file to import a collection, .csv or not : import does nothing excepts display a 400 error in docker logs. Not even an error displayed in client.

TanguyScholtes avatar Feb 08 '19 15:02 TanguyScholtes

Same problem here, tried json, jsonArray, csv...can't import any type of collections. =/

albertowd avatar Apr 15 '19 18:04 albertowd

How this feature supposed to work? Maybe an error happen because target collection is not empty (in my case at least, I don't want to delete all entries just to see would or not it work). Or maybe because I made an export from different DB (another name and server) where another db-user assigned, even if I have access to both.

Serg-Maximchuk avatar Apr 26 '19 12:04 Serg-Maximchuk