Comments (10)
@rtritto thank you for your response.
I am using the latest image versions
REPOSITORY TAG DIGEST IMAGE ID CREATED SIZE
mongo-express latest sha256:05b7441d57d9e0f74f29b04b9a8fda3fabd4bb5021474cec4ab3956b07aed804 156c460699a5 11 days ago 247MB
mongo latest sha256:d341a86584b96eb665345a8f5b35fba8695ee1d0618fd012ec4696223a3d6c62 ee3b4d1239f1 2 weeks ago 748MB
Even when i specify the current latest digest from docker hub the error still persists.
# Starts a Mongo DB Server
version: '3.1'
services:
xenio-mongo-db:
image: mongo
restart: always
container_name: xenio-mongo-db
ports:
- "27017:27017"
volumes:
- mongo-data:/var/mongo/data
environment:
MONGO_INITDB_DATABASE: xenio-db
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: password
mongo-express:
image: mongo-express@sha256:e8f1096fc88d5566df50923b4b3556f74510ae9e0a8f0f29e4b854d444b30b18
restart: always
ports:
- "8081:8081"
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: admin
ME_CONFIG_MONGODB_ADMINPASSWORD: password
ME_CONFIG_MONGODB_URL: mongodb://admin:password@xenio-mongo-db:27017/
volumes:
mongo-data:
from mongo-express.
I have the same error with the following configuration:
mongo-express:1.0.0-20-alpine3.18 (26 oct 2023)
mongo 4.4.6
The issue arises when I press the 'Prev' / 'Next' buttons in the page navigator or try to delete records. Here is a screenshot that illustrates the problem:
from mongo-express.
same issue here. happens each time I use the delete all button
/node_modules/mongo-express/lib/routes/collection.js:84
...result,
^
TypeError: result is not iterable
at exp._buildMongoQuery (/node_modules/mongo-express/lib/routes/collection.js:84:14)
at exp.deleteCollection (/node_modules/mongo-express/lib/routes/collection.js:448:23)
at Layer.handle [as handle_request] (/node_modules/express/lib/router/layer.js:95:5)
at next (/node_modules/express/lib/router/route.js:144:13)
at mongoMiddleware (/node_modules/mongo-express/lib/router.js:260:5)
at Layer.handle [as handle_request] (/node_modules/express/lib/router/layer.js:95:5)
at next (/node_modules/express/lib/router/route.js:144:13)
at Route.dispatch (/node_modules/express/lib/router/route.js:114:3)
at Layer.handle [as handle_request] (/node_modules/express/lib/router/layer.js:95:5)
at /node_modules/express/lib/router/index.js:284:15
Node.js v18.19.0
from mongo-express.
same issue on container version 1.0.0-20-alpine3.18
from mongo-express.
_buildMongoQuery
is removed in #1009
Please use a newer Docker image version.
from mongo-express.
I have exactly the same problem with 1-20 in both scenarios: prev/next buttons and delete all.
Here are the logs from when I click delete all:
2023-11-10 16:28:28 /node_modules/mongo-express/lib/routes/collection.js:84
2023-11-10 16:28:28 ...result,
2023-11-10 16:28:28 ^
2023-11-10 16:28:28
2023-11-10 16:28:28 TypeError: result is not iterable
2023-11-10 16:28:28 at exp._buildMongoQuery (/node_modules/mongo-express/lib/routes/collection.js:84:14)
2023-11-10 16:28:28 at exp.deleteCollection (/node_modules/mongo-express/lib/routes/collection.js:448:23)
2023-11-10 16:28:28 at Layer.handle [as handle_request] (/node_modules/express/lib/router/layer.js:95:5)
2023-11-10 16:28:28 at next (/node_modules/express/lib/router/route.js:144:13)
2023-11-10 16:28:28 at mongoMiddleware (/node_modules/mongo-express/lib/router.js:260:5)
2023-11-10 16:28:28 at Layer.handle [as handle_request] (/node_modules/express/lib/router/layer.js:95:5)
After that mongo-express seems to restart.
from mongo-express.
Me too. Exactly same symptoms. I am also using the latest image.
TypeError: result is not iterable
2023-12-19T20:40:51.017491676Z at exp._buildMongoQuery (/node_modules/mongo-express/lib/routes/collection.js:84:14)
2023-12-19T20:40:51.017494510Z at exp.deleteCollection (/node_modules/mongo-express/lib/routes/collection.js:448:23)
2023-12-19T20:40:51.017497301Z at Layer.handle [as handle_request] (/node_modules/express/lib/router/layer.js:95:5)
2023-12-19T20:40:51.017499968Z at next (/node_modules/express/lib/router/route.js:144:13)
2023-12-19T20:40:51.017502551Z at mongoMiddleware (/node_modules/mongo-express/lib/router.js:260:5)
2023-12-19T20:40:51.017505218Z at Layer.handle [as handle_request] (/node_modules/express/lib/router/layer.js:95:5)
2023-12-19T20:40:51.017507885Z at next (/node_modules/express/lib/router/route.js:144:13)
2023-12-19T20:40:51.017536176Z at Route.dispatch (/node_modules/express/lib/router/route.js:114:3)
2023-12-19T20:40:51.017539301Z at Layer.handle [as handle_request] (/node_modules/express/lib/router/layer.js:95:5)
2023-12-19T20:40:51.017541968Z at /node_modules/express/lib/router/index.js:284:15
2023-12-19T20:40:51.017544551Z
2023-12-19T20:40:51.017548551Z Node.js v18.19.0
from mongo-express.
btw using this older image fixes the issue if you don't need the very latest changes:
mongo-express:0.54.0
from mongo-express.
I'm having the same issue on the container version: 1.0.0-18-alpine3.18
Are there any temporary workarounds?
from mongo-express.
Still the same issue with the latest image 1 day ago:
docker image inspect a7a234790da6
...
"Created": "2024-01-06T01:16:53.955438117Z",
...
from mongo-express.
Related Issues (20)
- cannot be moved on to the next page HOT 7
- Impossible to install MongoDB (used all ways possible to do) HOT 1
- no express server launched to serve 8081 port queries HOT 1
- can not go to the next page (pagination) HOT 10
- The "latest" docker tag is older than the latest pushed tag [Docker Hub] HOT 1
- What's wrong with Mongo Express? HOT 2
- CSRF Vulnerability in /admin HOT 5
- BSON field 'insert.documents.0' is the wrong type 'array', expected type 'object'
- Unable to update document - MongoServerError: Performing an update on the path '_id' would modify the immutable field '_id' HOT 2
- npm install -g mongo-express error for linux arm64 HOT 1
- [UI] Collection page, pagination empty button HOT 3
- cannot open document without 'unsafe-inline' keyword specified in csp
- Latest Update 1.0.2-20 Opens Admin Panel to Anyone if using Basic Auth HOT 3
- Docker: ME_CONFIG_MONGODB_ENABLE_ADMIN seems default to true instead of false HOT 1
- Pagination not limited HOT 4
- mongo-express 1.0.2, run without admin priviledges HOT 1
- Crushed when edit document HOT 3
- can't scroll collections menu when too many collections
- Docker Hub Information Is Outdated HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mongo-express.