-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Docs: Example shows TTL and Interval; results in "Invalid check" error #6343
Comments
We are seeing the same issue. Could someone explain why these two have to be mutually exclusive?
|
Hey there, This issue has been automatically locked because it is closed and there hasn't been any activity for at least 30 days. If you are still experiencing problems, or still have questions, feel free to open a new one 👍. |
Overview of the Issue
The Sample Payload for registering a service via HTTP includes a JSON body with both
Interval
andTTL
. When using both of these, the API responds withInvalid check: Interval and TTL cannot both be specified
.Reproduction Steps
consul agent -dev
curl http://localhost:8500/v1/agent/service/register -X PUT -d '{"Id":"123456","Name":"test-service","Port":5000,"Check":{"HTTP":"http://localhost:5000/health","Interval":"10s","TTL":"15s”}}’
Consul info for both Client and Server
Configuration is default
Operating system and Environment details
n/a
Log Fragments
The text was updated successfully, but these errors were encountered: