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

[BUG] RestClientTransport throws NoSuchMethodError #631

Closed
andrewparmet opened this issue Sep 21, 2023 · 1 comment
Closed

[BUG] RestClientTransport throws NoSuchMethodError #631

andrewparmet opened this issue Sep 21, 2023 · 1 comment
Labels
bug Something isn't working untriaged

Comments

@andrewparmet
Copy link
Contributor

What is the bug?

RestClientTransport is unusable:

java.lang.NoSuchMethodError: 'void org.opensearch.client.Request.setEntity(org.apache.hc.core5.http.HttpEntity)'
  at org.opensearch.client.transport.rest_client.RestClientTransport.prepareLowLevelRequest(RestClientTransport.java:221)
  at org.opensearch.client.transport.rest_client.RestClientTransport.performRequest(RestClientTransport.java:148)
  at org.opensearch.client.opensearch.indices.OpenSearchIndicesClient.create(OpenSearchIndicesClient.java:244)
  at org.opensearch.client.opensearch.indices.OpenSearchIndicesClient.create(OpenSearchIndicesClient.java:258)

Using latest HEAD - d09bb4e.

How can one reproduce the bug?

Use the RestClientTransport.

What is the expected behavior?

Requests should work.

What is your host/environment?

Mac OS.

Do you have any screenshots?

Nope.

Do you have any additional context?

Nope.

@andrewparmet andrewparmet added bug Something isn't working untriaged labels Sep 21, 2023
@reta
Copy link
Collaborator

reta commented Sep 21, 2023

Please check https://github.com/opensearch-project/opensearch-java/blob/main/USER_GUIDE.md#creating-a-client, the RestClientTransport is deprecated in 3.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working untriaged
Projects
None yet
Development

No branches or pull requests

2 participants