Hi @LhamoDev. Can you share your code for the request that triggers the exception? It looks like something in the response is coming back as an array rather than an object, so this may be a bug in the response model.
Thanks, @LhamoDev. My best guess is that your Reservation type doesn't align with one of the hits coming back after the 15th document. Is it possible one of the documents includes an array of values where the corresponding property on your Reservation class expects an object? As your size is small, I'd recommend running the same query in Kibana to view the hits and see if any fields hold an array. You could alternatively use a tool such as Fiddler to inspect the response. You could also consider experimenting with From = 15, Size = 1, moving forward until you find a particular hit which causes the exception to be thrown.
Hi @stevejgordon
I've tested it like you said, The first 15 Reservations can be retrieved and displayes the correct way,
But when I want to go to Page 2,
It doesn't work anymore, only if I do this:
the first one can be displayed, but when I set the Size to 2 or the From to 16,
It doesn't retrieve anything.
(page property is an array so thats why the if statement says if(page == 1))
Any ideas?
I already serialized the request to json, to see if it's valid or not, and it's valid.
So I really don't know what the issue could be here..
Any ideas?
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.