Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on response after modifying request API from _msearch to _search #47

Open
Henriquelange opened this issue Sep 16, 2019 · 0 comments

Comments

@Henriquelange
Copy link

Affected Projects: Reactivesearch / ReactiveCore

Library Version: 3.0.1

Describe the bug
Using the Reactivesearch documentation as a baseline, I changed the request API endpoint as follow:
image
The request was processed nicely by Elasticsearch. However, the following error was thrown while the library was processing the response:
image
As I checked, the problem is that the handleResponse method tries to directly access a "responses" property from the body, and the search API doesn't return an array of responses - it returns a single response.
image

To Reproduce
Steps to reproduce the behavior:
Just modify any request using transformRequest as described above.

Expected behavior
The single response from the _search API should be processed succesfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant