Code Monkey home page Code Monkey logo

Comments (7)

rtritto avatar rtritto commented on May 26, 2024

Please can you add the reproduction steps and the error log?

from mongo-express.

Caffeine21 avatar Caffeine21 commented on May 26, 2024

image

from mongo-express.

Caffeine21 avatar Caffeine21 commented on May 26, 2024

The conditions for the reenactment are simple. Just press the move button

image

from mongo-express.

juan-leon avatar juan-leon commented on May 26, 2024

I have same problem (my workaround is to edit the URL and add &skip=30, so I can avoid the runAggregate=false and 'projection=' in generated url)

These are the logs of the mongo-express docker image (I am using mongo-express:latest from 4 days ago, a776ee465303)

mongo-express  | MongoInvalidArgumentError: Argument "pipeline" must be an array of aggregation stages
mongo-express  |     at Collection.aggregate (/node_modules/mongodb/lib/collection.js:368:19)
mongo-express  |     at exp.viewCollection (/node_modules/mongo-express/lib/routes/collection.js:167:26)
mongo-express  |     at Layer.handle [as handle_request] (/node_modules/express/lib/router/layer.js:95:5)
mongo-express  |     at next (/node_modules/express/lib/router/route.js:144:13)
mongo-express  |     at mongoMiddleware (/node_modules/mongo-express/lib/router.js:260:5)
mongo-express  |     at Layer.handle [as handle_request] (/node_modules/express/lib/router/layer.js:95:5)
mongo-express  |     at next (/node_modules/express/lib/router/route.js:144:13)
mongo-express  |     at Route.dispatch (/node_modules/express/lib/router/route.js:114:3)
mongo-express  |     at Layer.handle [as handle_request] (/node_modules/express/lib/router/layer.js:95:5)
mongo-express  |     at /node_modules/express/lib/router/index.js:284:15 {
mongo-express  |   [Symbol(errorLabels)]: Set(0) {}
mongo-express  | }
mongo-express  | GET /db/ikb/interactions?skip=10&key=&value=&type=S&query=&projection=&runAggregate=false&sort[date]=-1 302 4.284 ms - 266

from mongo-express.

rtritto avatar rtritto commented on May 26, 2024

The conditions for the reenactment are simple. Just press the move button

image

@Caffeine21 Seems that mongo-express image insn't updated.

In master branch, current pagination component is:

image

I have same problem (my workaround is to edit the URL and add &skip=30, so I can avoid the runAggregate=false and 'projection=' in generated url)

These are the logs of the mongo-express docker image (I am using mongo-express:latest from 4 days ago, a776ee465303)

mongo-express  | MongoInvalidArgumentError: Argument "pipeline" must be an array of aggregation stages
mongo-express  |     at Collection.aggregate (/node_modules/mongodb/lib/collection.js:368:19)
mongo-express  |     at exp.viewCollection (/node_modules/mongo-express/lib/routes/collection.js:167:26)
mongo-express  |     at Layer.handle [as handle_request] (/node_modules/express/lib/router/layer.js:95:5)
mongo-express  |     at next (/node_modules/express/lib/router/route.js:144:13)
mongo-express  |     at mongoMiddleware (/node_modules/mongo-express/lib/router.js:260:5)
mongo-express  |     at Layer.handle [as handle_request] (/node_modules/express/lib/router/layer.js:95:5)
mongo-express  |     at next (/node_modules/express/lib/router/route.js:144:13)
mongo-express  |     at Route.dispatch (/node_modules/express/lib/router/route.js:114:3)
mongo-express  |     at Layer.handle [as handle_request] (/node_modules/express/lib/router/layer.js:95:5)
mongo-express  |     at /node_modules/express/lib/router/index.js:284:15 {
mongo-express  |   [Symbol(errorLabels)]: Set(0) {}
mongo-express  | }
mongo-express  | GET /db/ikb/interactions?skip=10&key=&value=&type=S&query=&projection=&runAggregate=false&sort[date]=-1 302 4.284 ms - 266

@juan-leon This issue is fixed in #944, #956 (comment), mongo-express/mongo-express-docker#102 (comment).


Try to remove mongo-express image and then pull a new one.

from mongo-express.

juan-leon avatar juan-leon commented on May 26, 2024

Try to remove mongo-express image and then pull a new one.

I did that and problem is not fixed.

From docker image inspect mongo-express I can see 2 things:

This will help you to identify the image

"Id": "sha256:a239c27c8e22fae6501db32bde19fa3133b54189cacd9f4779753234dfcc1f8d",
...
"Created": "2023-10-16T16:59:03.180212847Z",

However, despite the image being created yesterday, I can see this also

            "Env": [
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                ...
                "MONGO_EXPRESS_VERSION=1.0.0"
            ],

I would have expected 1.0.1 or 1.0.2 (from the comments on other issues)

from mongo-express.

Caffeine21 avatar Caffeine21 commented on May 26, 2024

@juan-leon Please check this issue here in the future.

mongo-express/mongo-express-docker#104

from mongo-express.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.