Does not work search
-
16/12 14:02 [3148] - [31merror[39m: /api/search
MongoError: Failed to parse: { find: "searchpost", filter: {}, projection: { _id: 0, id: 1 }, limit: "50" }. 'limit' field must be numeric.
at Function.MongoError.create (/home/node/forum/node_modules/mongodb/node_modules/mongodb-core/lib/error.js:31:11)
at queryCallback (/home/node/forum/node_modules/mongodb/node_modules/mongodb-core/lib/cursor.js:282:36)
at Callbacks.emit (/home/node/forum/node_modules/mongodb/node_modules/mongodb-core/lib/topologies/server.js:95:3)
at null.messageHandler (/home/node/forum/node_modules/mongodb/node_modules/mongodb-core/lib/topologies/server.js:249:23)
at Socket.<anonymous> (/home/node/forum/node_modules/mongodb/node_modules/mongodb-core/lib/connection/connection.js:262:22)
at Socket.emit (events.js:95:17)
at Socket.<anonymous> (stream_readable.js:765:14)
at Socket.emit (events.js:92:17)
at emitReadable (_stream_readable.js:427:10)
at emitReadable (_stream_readable.js:423:5) -
Search does not work on my installation either.
I guess it has got to do with Mongo.
It worked with Redis. -
@Apxukoc said:
'limit' field must be numeric
I have two now. One search works, the other does not.
Everywhere running MongoDB. The problem is not in the database. You need to change your search, this line says "... limit 'field must be numerik ..." -
I've got
internal error
so our problems might not be related - except Mongo.
They recently switched to Mongo and still have lots of Redis related stuff in the code.. -
I used to think that such behavior could be due to mongorestore but testbed tried several times to repeat, everything works like clockwork. In production for some reason, there is an error. When you try to search obviously also returns an error, you can not perform the action because the argument is not a numeric value. So somewhere in the logic determined that the value may
-
I still got this error.
When access
/search
Internal error. Oops! Looks like something went wrong! /search Failed to parse: { find: "searchpost", filter: {}, projection: { _id: 0, id: 1 }, limit: "50" }. 'limit' field must be numeric.
NodeBB v0.9.3
GIT commit: 9f14e8ee