N
Novu4w ago
Shri

Selfhost - MongoServerError: cannot convert a oid to a value for comparison

Hey folks, Getting a MongoServerError during signup and login. I can see the user in the DB but the dashboard fails:
"err":{"type":"MongoServerError","message":"cannot convert a oid to a value for comparison","stack":"MongoServerError: cannot convert a oid to a value for comparison\n at Connection.onMessage (/usr/src/app/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]__/node_modules/mongodb/lib/cmap/connection.js:202:26)\n at MessageStream.<anonymous> (/usr/src/app/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]__/node_modules/mongodb/lib/cmap/connection.js:61:60)\n at MessageStream.emit (node:events:519:28)\n at processIncomingData (/usr/src/app/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]__/node_modules/mongodb/lib/cmap/message_stream.js:124:16)\n at MessageStream._write (/usr/src/app/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]__/node_modules/mongodb/lib/cmap/message_stream.js:33:9)\n at writeOrBuffer (node:internal/streams/writable:570:12)\n at _write (node:internal/streams/writable:499:10)\n at Writable.write (node:internal/streams/writable:508:10)\n at Socket.ondata (node:internal/streams/readable:1007:22)\n at Socket.emit (node:events:519:28)","ok":0,"code":2,"codeName":"BadValue"},"responseTime":313,"msg":"request errored"
"err":{"type":"MongoServerError","message":"cannot convert a oid to a value for comparison","stack":"MongoServerError: cannot convert a oid to a value for comparison\n at Connection.onMessage (/usr/src/app/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]__/node_modules/mongodb/lib/cmap/connection.js:202:26)\n at MessageStream.<anonymous> (/usr/src/app/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]__/node_modules/mongodb/lib/cmap/connection.js:61:60)\n at MessageStream.emit (node:events:519:28)\n at processIncomingData (/usr/src/app/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]__/node_modules/mongodb/lib/cmap/message_stream.js:124:16)\n at MessageStream._write (/usr/src/app/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]__/node_modules/mongodb/lib/cmap/message_stream.js:33:9)\n at writeOrBuffer (node:internal/streams/writable:570:12)\n at _write (node:internal/streams/writable:499:10)\n at Writable.write (node:internal/streams/writable:508:10)\n at Socket.ondata (node:internal/streams/readable:1007:22)\n at Socket.emit (node:events:519:28)","ok":0,"code":2,"codeName":"BadValue"},"responseTime":313,"msg":"request errored"
No description
No description
1 Reply
Shri
ShriOP4w ago
I have got past this issue. I was using Maxscale DB Proxy that has a NoSQLListener so MongoDB clients can connect to a MariaDB backend but it clearly doesnt support some operation that Novu is using Now I am using a MongoDB instance and its working without issues
Want results from more Discord servers?
Add your server