# I need help with log in error OP\_Query

**URL:** <https://community.auth0.com/t/i-need-help-with-log-in-error-op-query/104586>\
**Category:** Get Help\
**Tags:** login-experience, new-universal-login-experience\
**Created:** [April 13, 2023, 2:23am UTC](https://community.auth0.com/t/i-need-help-with-log-in-error-op-query/104586 "2023-04-13T02:23:01Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![42346091nacho](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/42346091nacho/32/41587_2.png) [@42346091nacho](https://community.auth0.com/u/42346091nacho)\
**Post date:** [April 13, 2023, 2:23am UTC](https://community.auth0.com/t/i-need-help-with-log-in-error-op-query/104586/1 "2023-04-13T02:23:01Z")

</div>

I have a problem. From one moment to another this error comes out when i try to log in with auth0:

Unsupported OP\_QUERY command: find. The client driver may require an upgrade. For more details see [https://dochub.mongodb.org/core/legacy-opcode-removal](https://dochub.mongodb.org/core/legacy-opcode-removal)

---

<div class="post-metadata">

**Author:** ![nathankirk91](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nathankirk91/32/46282_2.png) [@nathankirk91](https://community.auth0.com/u/nathankirk91)\
**Post date:** [April 13, 2023, 6:13am UTC](https://community.auth0.com/t/i-need-help-with-log-in-error-op-query/104586/2 "2023-04-13T06:13:27Z")

</div>

I’m having the same issue. It’s due to the mongodb package version (mongodb@3.1.4) being used. Is there a way to upgrade this to V5?

---

<div class="post-metadata">

**Author:** ![philly.bonnot](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/philly.bonnot/32/46285_2.png) [@philly.bonnot](https://community.auth0.com/u/philly.bonnot)\
**Post date:** [April 13, 2023, 7:37am UTC](https://community.auth0.com/t/i-need-help-with-log-in-error-op-query/104586/3 "2023-04-13T07:37:41Z")

</div>

I have the same issue, how is it possible to upgrade ?

---

<div class="post-metadata">

**Author:** ![sayanth-perfagents](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sayanth-perfagents/32/33466_2.png) [@sayanth-perfagents](https://community.auth0.com/u/sayanth-perfagents)\
**Post date:** [April 13, 2023, 1:28pm UTC](https://community.auth0.com/t/i-need-help-with-log-in-error-op-query/104586/4 "2023-04-13T13:28:59Z")

</div>

I am also having the same issue.

---

<div class="post-metadata">

**Author:** ![kennaku1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kennaku1/32/46299_2.png) [@kennaku1](https://community.auth0.com/u/kennaku1)\
**Post date:** [April 13, 2023, 1:51pm UTC](https://community.auth0.com/t/i-need-help-with-log-in-error-op-query/104586/5 "2023-04-13T13:51:08Z")

</div>

I am having the same issue as well. This is very frustrating, has anyone found a solution?

---

<div class="post-metadata">

**Author:** ![42346091nacho](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/42346091nacho/32/41587_2.png) [@42346091nacho](https://community.auth0.com/u/42346091nacho)\
**Post date:** [April 13, 2023, 2:18pm UTC](https://community.auth0.com/t/i-need-help-with-log-in-error-op-query/104586/6 "2023-04-13T14:18:37Z")

</div>

I think is a problem from auth0. Multiple people having the same problem from one second to another.

---

<div class="post-metadata">

**Author:** ![42346091nacho](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/42346091nacho/32/41587_2.png) [@42346091nacho](https://community.auth0.com/u/42346091nacho)\
**Post date:** [April 13, 2023, 2:21pm UTC](https://community.auth0.com/t/i-need-help-with-log-in-error-op-query/104586/7 "2023-04-13T14:21:11Z")

</div>

Im using mongodb v6.0 and still the same. I have everything update and suddenly all people start getting this message. I think is a problem of auth0 not from us. But i dont know how to talk to them or where to reach them.

---

<div class="post-metadata">

**Author:** ![kennaku1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kennaku1/32/46299_2.png) [@kennaku1](https://community.auth0.com/u/kennaku1)\
**Post date:** [April 13, 2023, 2:27pm UTC](https://community.auth0.com/t/i-need-help-with-log-in-error-op-query/104586/8 "2023-04-13T14:27:03Z")

</div>

Support just helped me resolve this issue. Simply change the driver version to mongodb@4.1.0 in your custom database functions. 😀

---

<div class="post-metadata">

**Author:** ![sayanth-perfagents](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sayanth-perfagents/32/33466_2.png) [@sayanth-perfagents](https://community.auth0.com/u/sayanth-perfagents)\
**Post date:** [April 13, 2023, 2:43pm UTC](https://community.auth0.com/t/i-need-help-with-log-in-error-op-query/104586/10 "2023-04-13T14:43:11Z")

</div>

I am able to resolve the issue. Change the Node version to 16 from tenant settings and then change the driver version to 4.1.0

[https://auth0-extensions.github.io/canirequire/#mongodb](https://auth0-extensions.github.io/canirequire/#mongodb)

---

<div class="post-metadata">

**Author:** ![philly.bonnot](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/philly.bonnot/32/46285_2.png) [@philly.bonnot](https://community.auth0.com/u/philly.bonnot)\
**Post date:** [April 13, 2023, 2:59pm UTC](https://community.auth0.com/t/i-need-help-with-log-in-error-op-query/104586/11 "2023-04-13T14:59:48Z")

</div>

> [@sayanth-perfagents](#):
>
> 4.1.0

Thanks Sayanth  
actually updated my autho extensibility to Node 16, and then database action script with 4.1.0 still have the issue ☹

---

<div class="post-metadata">

**Author:** ![philly.bonnot](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/philly.bonnot/32/46285_2.png) [@philly.bonnot](https://community.auth0.com/u/philly.bonnot)\
**Post date:** [April 13, 2023, 3:23pm UTC](https://community.auth0.com/t/i-need-help-with-log-in-error-op-query/104586/12 "2023-04-13T15:23:38Z")

</div>

Actually after restarting it works !  
with the fix you provided.  
thanks

---

<div class="post-metadata">

**Author:** ![42346091nacho](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/42346091nacho/32/41587_2.png) [@42346091nacho](https://community.auth0.com/u/42346091nacho)\
**Post date:** [April 13, 2023, 4:54pm UTC](https://community.auth0.com/t/i-need-help-with-log-in-error-op-query/104586/13 "2023-04-13T16:54:30Z")

</div>

I already have node 16 and mongodb 4.1.0 but still the same error in auth0 password log in

---

<div class="post-metadata">

**Author:** ![42346091nacho](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/42346091nacho/32/41587_2.png) [@42346091nacho](https://community.auth0.com/u/42346091nacho)\
**Post date:** [April 13, 2023, 5:25pm UTC](https://community.auth0.com/t/i-need-help-with-log-in-error-op-query/104586/14 "2023-04-13T17:25:11Z")

</div>

I have the version 16.15.1 of Node and the version 4.1.0 of mongo:

├── mongodb@4.1.0  
└─┬ mongoose@6.10.5  
└── mongodb@4.14.0

But still getting this error of OP\_Query

---

<div class="post-metadata">

**Author:** ![42346091nacho](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/42346091nacho/32/41587_2.png) [@42346091nacho](https://community.auth0.com/u/42346091nacho)\
**Post date:** [April 13, 2023, 5:38pm UTC](https://community.auth0.com/t/i-need-help-with-log-in-error-op-query/104586/15 "2023-04-13T17:38:18Z")

</div>

Sigo pensando que el problema es de Auth0. Me tira el error incluso sin tener el servidor levantado. Cualquier otro dato del servidor me lo trae perfecto incluso usando find. Pero lo unico que falla es la contraseña de auth0. Es un problema de auth0. Pero soporte no responde.

---

<div class="post-metadata">

**Author:** ![kim.nguyen](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kim.nguyen/32/46313_2.png) [@kim.nguyen](https://community.auth0.com/u/kim.nguyen)\
**Post date:** [April 14, 2023, 1:01am UTC](https://community.auth0.com/t/i-need-help-with-log-in-error-op-query/104586/16 "2023-04-14T01:01:59Z")

</div>

I fixed it by updating my Rules to

_**const { MongoClient } = require(“mongodb@4.1.0”);**_

Then it worked

instead of using mongodb@3.1.4

hope it helped 🙂

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [April 14, 2023, 1:08am UTC](https://community.auth0.com/t/i-need-help-with-log-in-error-op-query/104586/17 "2023-04-14T01:08:29Z")

</div>

Thanks for sharing @kim.nguyen, that is the fix indeed ✅ I apologize we weren’t able to get to this sooner!

---

<div class="post-metadata">

**Author:** ![42346091nacho](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/42346091nacho/32/41587_2.png) [@42346091nacho](https://community.auth0.com/u/42346091nacho)\
**Post date:** [April 14, 2023, 4:50pm UTC](https://community.auth0.com/t/i-need-help-with-log-in-error-op-query/104586/18 "2023-04-14T16:50:57Z")

</div>

I dont have mongoClient i have this:

const mongoose = require(“mongoose”);

And even without start my server the auth0 is still failing.

---

<div class="post-metadata">

**Author:** ![42346091nacho](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/42346091nacho/32/41587_2.png) [@42346091nacho](https://community.auth0.com/u/42346091nacho)\
**Post date:** [April 15, 2023, 9:24pm UTC](https://community.auth0.com/t/i-need-help-with-log-in-error-op-query/104586/19 "2023-04-15T21:24:40Z")

</div>

The solution is to pay a plan for auth0. In free plans they stop supporting external database. So if you recieve this error and you have a free plan is becouse you are no longer able to connect to mongo for free.

---

<div class="post-metadata">

**Author:** ![teascanner](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@teascanner](https://community.auth0.com/u/teascanner)\
**Post date:** [April 20, 2023, 3:04pm UTC](https://community.auth0.com/t/i-need-help-with-log-in-error-op-query/104586/20 "2023-04-20T15:04:35Z")

</div>

I’m haveing the same problem but only when I call the management api to update a user for the email verification, why are the db scripts working but not the update user api?. What do you mean that mongodb in no longer in the free tier? Where can I find more information about this?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [May 17, 2023, 10:26am UTC](https://community.auth0.com/t/i-need-help-with-log-in-error-op-query/104586/22 "2023-05-17T10:26:43Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
