FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    [SearchEngineRequestFailedException] on PATCH user data

    Scheduled Pinned Locked Moved Solved
    Q&A
    0
    4
    1.4k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      twilkinson
      last edited by

      I'm running FusionAuth version 1.27.2, basic installation using the docker container, and have encountered this problem.

      If I send a request to PATCH /api/user/{userId} (existing {userid}) with request body

      { "user": { "data": { "foo": { "value": "bar" } } } }

      it returns the error

      { "generalErrors": [ { "code": "[SearchEngineRequestFailedException]", "message": "A request to the search index has failed. This error is unexpected. Please review the troubleshooting guide found in the documentation for assistance and the available support channels." } ] }

      However, if I simply change the property name in the request body to fee

      { "user": { "data": { "fee": { "value": "bar" } } } }

      the PATCH operation succeeds.

      The error only occurs if the name is foo and the value for foo is an object. If the value for foo is a string

      { "user": { "data": { "foo": "bar" } } }

      it works fine.

      Can anyone else duplicate this? Any explanation?

      1 Reply Last reply Reply Quote 0
      • joshuaJ
        joshua
        last edited by

        @twilkinson that is interesting behavior indeed!

        I was able to make an update to a user id using these commands:

        If I send a request to PATCH /api/user/{userId} (existing {userid}) with request body
        { "user": { "data": { "foo": { "value": "bar" } } } }

        This leads me to think that something else might be going on with your FusionAuth installation.

        There are a couple of things that it might be:

        1. Consider Reindexing
          https://fusionauth.io/community/forum/topic/375/seeing-a-request-to-the-search-index-has-failed-this-error-is-unexpected-and-i-can-no-longer-login-with-google

        2. Review how much disk space you have allocated
          https://fusionauth.io/community/forum/topic/151/a-request-to-the-search-index-has-failed-this-error-is-unexpected

        If that still does not solve the issue, post back and we can do some additional troubleshooting.

        Thanks,
        Josh

        T 1 Reply Last reply Reply Quote 0
        • T
          twilkinson @joshua
          last edited by

          @joshua

          Doing a Reindex fixed it - I'm new to FusionAuth and didn't know that operation was there.

          Thanks for the help.

          1 Reply Last reply Reply Quote 0
          • joshuaJ
            joshua
            last edited by

            @twilkinson -

            Your welcome 🎉 Super! Glad you got it working!

            Josh

            1 Reply Last reply Reply Quote 0
            • G grisha referenced this topic on
            • First post
              Last post