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

Invalid reply from Elastic Search: {"acknowledged":true} #8

Closed
andreikilin opened this issue Feb 6, 2017 · 4 comments
Closed

Invalid reply from Elastic Search: {"acknowledged":true} #8

andreikilin opened this issue Feb 6, 2017 · 4 comments

Comments

@andreikilin
Copy link

Hi

I caught exception when I was trying to send request to elasticsearch:

de.otto.flummi.InvalidElasticsearchResponseException: Invalid reply from Elastic Search: {"acknowledged":true} at de.otto.flummi.request.CreateIndexRequestBuilder.execute(CreateIndexRequestBuilder.java:59)

JsonObject responseObject = gson.fromJson(jsonString, JsonObject.class);
This line could not deserialize string "{"acknowledged":true}"

But this can
JsonElement element = gson.fromJson (jsonString, JsonElement.class); JsonObject responseObject = gson.element.getAsJsonObject();

Could you make a fix and upload jar file to manen?
Thanks!

@BastianVoigt
Copy link
Contributor

Hi,
which elasticsearch version, and which version of Flummi are you using?
Bastian

@andreikilin
Copy link
Author

elasticsearch 2.4.3
flummi -0.2.0

@BastianVoigt
Copy link
Contributor

Please upgrade to flummi 0.21.0

@andreikilin
Copy link
Author

Sorry

But I found the same problem with flummi-5.0.24 and elasticsearch-5.2.0
Invalid reply from Elastic Search: {"acknowledged":true,"shards_acknowledged":true}

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

2 participants