You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. I'm trying to get a value from KV, and search for a service. But I couldn't find any way to pass a token in order to authenticate the requests.
The response I'm having is: OperationException{statusCode=403, statusMessage='Forbidden', statusContent='rpc error making call: rpc error making call: Permission denied'} at com.ecwid.consul.v1.kv.KeyValueConsulClient.getKVValue(KeyValueConsulClient.java:86) at com.ecwid.consul.v1.kv.KeyValueConsulClient.getKVValue(KeyValueConsulClient.java:64) at com.ecwid.consul.v1.kv.KeyValueConsulClient.getKVValue(KeyValueConsulClient.java:54) at com.ecwid.consul.v1.ConsulClient.getKVValue(ConsulClient.java:589) at com.siriusxm.esb.main.JmsApp.getConsulProviders(JmsApp.java:286) at com.siriusxm.esb.main.JmsApp.main(JmsApp.java:152)
And the client config:
`
ConsulClient client = new ConsulClient("localhost");
GetValue getValue = client.getKVValue(activeSitePath).getValue();
Hi. I'm trying to get a value from KV, and search for a service. But I couldn't find any way to pass a token in order to authenticate the requests.
The response I'm having is:
OperationException{statusCode=403, statusMessage='Forbidden', statusContent='rpc error making call: rpc error making call: Permission denied'} at com.ecwid.consul.v1.kv.KeyValueConsulClient.getKVValue(KeyValueConsulClient.java:86) at com.ecwid.consul.v1.kv.KeyValueConsulClient.getKVValue(KeyValueConsulClient.java:64) at com.ecwid.consul.v1.kv.KeyValueConsulClient.getKVValue(KeyValueConsulClient.java:54) at com.ecwid.consul.v1.ConsulClient.getKVValue(ConsulClient.java:589) at com.siriusxm.esb.main.JmsApp.getConsulProviders(JmsApp.java:286) at com.siriusxm.esb.main.JmsApp.main(JmsApp.java:152)
And the client config:
`
ConsulClient client = new ConsulClient("localhost");
GetValue getValue = client.getKVValue(activeSitePath).getValue();
// Services
HealthServicesRequest request = HealthServicesRequest.newBuilder()
.setTags(tags.toArray(new String[tags.size()]))
.setPassing(true)
.setQueryParams(QueryParams.DEFAULT)
.build();
Response<List> healthyServices = client.getHealthServices(serviceName, request);
`
Thanks in advance
The text was updated successfully, but these errors were encountered: