Added the wrong datatype to a user's data field
-
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?
-
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