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

Added the wrong datatype to a user's data field

Scheduled Pinned Locked Moved
Q&A
elasticsearch user data error
0
2
4.5k
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.
  • D
    dan
    last edited by 9 Feb 2021, 17:48

    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
    • D
      dan
      last edited by 9 Feb 2021, 17:50

      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
      1 out of 2
      • First post
        1/2
        Last post