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

node seed.js fail #49

Open
dextreeamper opened this issue Oct 14, 2022 · 2 comments
Open

node seed.js fail #49

dextreeamper opened this issue Oct 14, 2022 · 2 comments

Comments

@dextreeamper
Copy link

/Users/user/Development/vidly-api-node/node_modules/mongodb-core/lib/connection/pool.js:595
          return handleOperationCallback(self, workItem.cb, new MongoError(message.documents[0]));
                                                            ^
MongoError: Unsupported OP_QUERY command: delete. The client driver may require an upgrade. For more details see https://dochub.mongodb.org/core/legacy-opcode-removal
    at /Users/user/Development/vidly-api-node/node_modules/mongodb-core/lib/connection/pool.js:595:61
    at authenticateStragglers (/Users/user/Development/vidly-api-node/node_modules/mongodb-core/lib/connection/pool.js:513:16)
    at Connection.messageHandler (/Users/user/Development/vidly-api-node/node_modules/mongodb-core/lib/connection/pool.js:549:5)
    at emitMessageHandler (/Users/user/Development/vidly-api-node/node_modules/mongodb-core/lib/connection/connection.js:309:10)
    at Socket.<anonymous> (/Users/user/Development/vidly-api-node/node_modules/mongodb-core/lib/connection/connection.js:452:17)
    at Socket.emit (node:events:527: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,
  errmsg: 'Unsupported OP_QUERY command: delete. The client driver may require an upgrade. For more details see https://dochub.mongodb.org/core/legacy-opcode-removal',
  code: 352,
  codeName: 'UnsupportedOpQueryCommand'
}
@SincerelyBrittany
Copy link

SincerelyBrittany commented Dec 2, 2022

+1 to this issue, I used this one @dextreeamper: https://github.com/amujuruprasad/vidly-api-nodejs

@mentalhead
Copy link

Install MongoDB 5.0 instead of the latest version, I just installed it and it works.

Unsupported OP_QUERY command: delete

It seems that OP_DELETE isn't available in MongoDB 6.0, so a workaround is to use version 5.0 instead.

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

3 participants