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

OperationException #188

Closed
pparthenhs opened this issue Jul 17, 2019 · 2 comments
Closed

OperationException #188

pparthenhs opened this issue Jul 17, 2019 · 2 comments

Comments

@pparthenhs
Copy link

pparthenhs commented Jul 17, 2019

In some cases, when I try to set KV using consulClient.setKVValue("key", value) . The consul library (1.4.0) throws the following Exception :

Exception in thread "main" OperationException{statusCode=500, statusMessage='Internal Server Error', statusContent='No known Consul servers'}
        at com.ecwid.consul.v1.kv.KeyValueConsulClient.setKVValue(KeyValueConsulClient.java:262)
        at com.ecwid.consul.v1.kv.KeyValueConsulClient.setKVValue(KeyValueConsulClient.java:245)
        at com.ecwid.consul.v1.kv.KeyValueConsulClient.setKVValue(KeyValueConsulClient.java:230)
        at com.ecwid.consul.v1.ConsulClient.setKVValue(ConsulClient.java:579)

But most of the time it works perfectly. Do you know why this is happing?

@vgv
Copy link
Member

vgv commented Jul 26, 2019

Hi,

This is server-side error from consul agent – "No known Consul servers". You should check and (probably) fix your consul cluster.

In our own production system we have such errors too. Usually it happens then consul agent can't connect to any consul server.

@vgv vgv closed this as completed Jul 26, 2019
@pparthenhs
Copy link
Author

Hello @vgv,

Thanks for your response and your details. How do you handle this problem?

I am thinking to restart the consul agent, and re-execute my Java code.

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