-
Notifications
You must be signed in to change notification settings - Fork 264
Example from the readme doc fails with Jackson, works with Yasson #4
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
Comments
Addition: When I change to the Yasson jsonb processing by using this: Transport transport = new RestClientTransport(restClient, new JsonbJsonpMapper()); instead of the |
Thanks for trying out the new Java client! Still early days, but feedback is very welcome! There's an issue in the |
Looks great up to now. I wrote reactive counterparts to ApiClient, Transport and ElasticsearchClient (the last one just for the first search method) and can reuse the Endpoints and part of the code from the RestClientTransport to send the requests and parse the responses over the wire for imperative and reactive code. That will definitely allow me to clean up the codebase in Spring Data Elasticsearch when we use this for reactive and imperative code. |
I have set up a minimal Java application to test the client (https://github.com/sothawo/elastic-java-test) It's basically the code from the readme showing how to use the Elastisearch Client.
I have Elasticsearch 7.12.1 running in docker on port 9002 and am using an intercepting proxy on port 8080 to check what's going over the wire.
So this simple code
leads to this error:
That's when parsing the response, not even on parsing the returned data.
In the proxy I see the following request
and this response:
So the request and response over the wire are ok. Taking the proxy out yields the same result.
What could be the reason for this error?
The text was updated successfully, but these errors were encountered: