Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled "error" event #6

Open
ThinBucket82549 opened this issue Jul 30, 2022 · 2 comments
Open

Unhandled "error" event #6

ThinBucket82549 opened this issue Jul 30, 2022 · 2 comments

Comments

@ThinBucket82549
Copy link

There is a weird error when someone signs up
20220730_195508

@ThinBucket82549
Copy link
Author

Then it just crashes... help?

@severinkrystyan
Copy link

The mongoose version in package.json needs to be updated.

This is the root error
Error [MongoError]: Unsupported OP_QUERY command: insert. The client driver may require an upgrade. For more details see https://dochub.mongodb.org/core/legacy-opcode-removal at Function.MongoError.create (D:\Repositories\Chat\node_modules\mongodb-core\lib\error.js:31:11) at D:\Repositories\Chat\node_modules\mongodb-core\lib\connection\pool.js:497:72 at authenticateStragglers (D:\Repositories\Chat\node_modules\mongodb-core\lib\connection\pool.js:443:16) at Connection.messageHandler (D:\Repositories\Chat\node_modules\mongodb-core\lib\connection\pool.js:477:5) at Socket.<anonymous> (D:\Repositories\Chat\node_modules\mongodb-core\lib\connection\connection.js:333:22) at Socket.emit (node:events:513:28) at addChunk (node:internal/streams/readable:315:12) at readableAddChunk (node:internal/streams/readable:289:9) at Socket.Readable.push (node:internal/streams/readable:228:10) at TCP.onStreamRead (node:internal/stream_base_commons:190:23) { ok: 0, code: 352, codeName: 'UnsupportedOpQueryCommand' }

Please see this documentation for more details.
https://www.mongodb.com/docs/v6.0/release-notes/6.0-compatibility/#legacy-opcodes-removed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants