Above is a sample search response, sometimes while searching we get alerts field which breaks our code, can you please give a sample response to how it looks like when we get alerts and warnings in response,
I wasn't able to find it in any documentation, so it would be of great help if some one from appsearch team shares a sample response.
JSON parse error: Cannot deserialize instance of `java.lang.String` out of START_OBJECT token; nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of `java.lang.String` out of START_OBJECT token
Can you please share a example. it would be of great help, as we are not able to replicate this issue
Error while extracting response for type [class SearchResponse] and content type [application/json;charset=utf-8]; nested exception is org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Cannot deserialize instance of `java.lang.String` out of START_OBJECT token; nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of `java.lang.String` out of START_OBJECT token
at [Source: (PushbackInputStream); line: 1, column: 99] (through reference chain: model.SearchResponse["meta"]->model.Meta["alerts"]->java.util.ArrayList[0])
We get this error intermittently, could it be app-search sends another response when its experiencing heavy load.
@Subhasis_Dash Got it. That doesn't give me a lot to work off of. If you are able to log the API responses so we can see exactly what you're getting in the response, and is causing the error, that would be extremely helpful.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.