Navigation

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

    Added the wrong datatype to a user's data field

    Q&A
    elasticsearch user data error
    0
    2
    52
    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.
    • dan
      dan last edited by

      Hi folks,

      I have a field of type number in a user's data field, but I accidentally pushed a string value to it

      I am getting this error message:

      {"generalErrors":[{"code":"[SearchEngineRequestFailedException]","message":"A request to the search index has failed. This error is unexpected. Contact Support."}]}
      Error: Request failed with status code 503
      

      I tried deleting the user and am still unable to recover from this error. How should I proceed?

      --
      FusionAuth - Auth for devs, built by devs.
      https://fusionauth.io

      1 Reply Last reply Reply Quote 0
      • dan
        dan last edited by

        This exception is caused by the fact that your objects in elastic now have two different schemas (one with the number, one with the string). You need to manually fix that; one way to proceed might be to access elastic directly and remove that one user.

        Then you'll need to reindex; here's more on that: https://fusionauth.io/docs/v1/tech/core-concepts/users/#reindex

        --
        FusionAuth - Auth for devs, built by devs.
        https://fusionauth.io

        1 Reply Last reply Reply Quote 0
        • First post
          Last post