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

co.elastic.clients.elasticsearch.ElasticsearchClient.delete responce nullpointerexception #793

Closed
miyaviYaKing opened this issue May 1, 2024 · 2 comments
Labels
Area: Specification Related to the API spec used to generate client code

Comments

@miyaviYaKing
Copy link

Java API client version

7.15.0

Java version

21.0.3

Elasticsearch Version

7.15.0

Problem description

java.lang.NullPointerException: status
at java.base/java.util.Objects.requireNonNull(Objects.java:233)
at co.elastic.clients.base.ElasticsearchError.(ElasticsearchError.java:44)
at co.elastic.clients.base.ElasticsearchError$Builder.build(ElasticsearchError.java:120)
at co.elastic.clients.json.BuildFunctionDeserializer.deserialize(BuildFunctionDeserializer.java:43)
at co.elastic.clients.json.JsonpDeserializer$LazyDeserializer.deserialize(JsonpDeserializer.java:205)
at co.elastic.clients.json.JsonpDeserializer.deserialize(JsonpDeserializer.java:102)
at co.elastic.clients.base.RestClientTransport.getHighLevelResponse(RestClientTransport.java:210)
at co.elastic.clients.base.RestClientTransport.performRequest(RestClientTransport.java:93)
at co.elastic.clients.elasticsearch.ElasticsearchClient.delete(ElasticsearchClient.java:456)
at co.elastic.clients.elasticsearch.ElasticsearchClient.delete(ElasticsearchClient.java:473)

@l-trotta l-trotta added the Area: Specification Related to the API spec used to generate client code label May 2, 2024
@miyaviYaKing
Copy link
Author

ElasticsearchClient.delete can successfully remove the document, at the same time, throw the NPE

@l-trotta
Copy link
Contributor

Hello! I tried reproducing this, but did not manage to trigger the exception. Could you send an example on how to reproduce this? Also version 7.15.0 is not supported anymore, you could try with the latest 7.X version, right now it's 7.17.21.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Specification Related to the API spec used to generate client code
Projects
None yet
Development

No branches or pull requests

2 participants