Skip to content

Failed when publishing a package [Incompatible mongodb version] #90

Description

@rrmarto

I start the server and it works perfectly, when I go to publish a package I receive the message "Successfully uploaded package" but when consulting the packages I receive the following error:

Error thrown by handler.
{ok: 0.0, errmsg: Unsupported OP_QUERY command: count. The client driver may require an upgrade. For more details see https://dochub.mongodb.org/core/legacy-opcode-removal, code: 352, codeName: UnsupportedOpQueryCommand}
package:shelf/src/middleware/logger.dart 30:62 logRequests...

If you consult the url directly https://server:port/api/packages/{name of the package} you can see that the package was inserted correctly because it returns the json of the package, the problem is when displaying it. I think that the problem is related with the legacy opcodes unsupported since mongodb 5.1 as shown here https://dochub.mongodb.org/core/legacy-opcode-removal and I'm using the latest community version 6.0.4.

Is there any solution that doesn't be downgrade the mongodb version?

Thanks in advance!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions