Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Cannot build Config, some of required attributes are not set [uiDir] (Consul 0.8) #236

Closed
timboven opened this issue May 21, 2017 · 0 comments · Fixed by #237
Closed

Cannot build Config, some of required attributes are not set [uiDir] (Consul 0.8) #236

timboven opened this issue May 21, 2017 · 0 comments · Fixed by #237

Comments

@timboven
Copy link
Contributor

With Consul 0.8 the uiDir attribute isn't needed anymore (Consul actually gives alerts about this in its logging if you do) - but removing that parameter gives an error in this client when requesting the agent (AgentClient.getAgent)

The error that is thrown:
Caused by: java.lang.IllegalStateException: Cannot build Config, some of required attributes are not set [uiDir]
at com.orbitz.consul.model.agent.ImmutableConfig$Builder.build(ImmutableConfig.java:2513)
at com.orbitz.consul.model.agent.ImmutableConfig.fromJson(ImmutableConfig.java:2007)

Reason for this - in com.orbitz.consul.model.agent.Config the uiDir-attribute is configured as a required property.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
1 participant