Error 400 Bad Request authentication

Hello,

we have not been able to connect with auth0 since yesterday and even with google
our application is in php and we use the bundle auth0 / auth0-php version 5.0

here is what we have as error

“Error_description”: “{\“ statusCode \ “: 400, \“ error \ “: \“ Bad Request \ “, \“ message \ “: \“ The ‘q’ parameter is available only if you specify 'search_engine = v3 '. \ “, \“ ErrorCode \ “: \“ invalid_query_string \ “}”

we tried it with the google authentication tests on the Auth0 platform, and it shows the same error

if we create a new account it works, but the old ones it is impossible to use them

Can you help us ?

Thank you

Hi @yassine.foudhaili

It looks like your app might be making a request to the user search in the management API using search v2. Can you try updating your code to use search_engine = v3 ?

You can check the migration path from v2 to v3 here:

1 Like

Returning 400 means that the request was malformed. In other words, the data stream sent by the client to the server didn’t follow the rules. The client SHOULD NOT repeat the request without modifications. It means that the request itself has somehow incorrect or corrupted and the server couldn’t understand it. The server is refusing to service the request because the entity of the request is in a format not supported by the requested resource for the requested method . Therefore, it prevents the website from being properly displayed. To fix a 400 Bad Request error, it is best to start diagnosing the issue from the client side itself. Complete the steps outlined in this section to help diagnose and correct the error.

  • Check for errors in the URL.
  • Clear Browser Cache and cookies.
  • Clear DNS Cache.
  • Check your File upload Size.
  • Deactivate Browser Extensions.