Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.

Catalog register/deregister WriteRequest JSON field not supported in modern consul versions #286

Open
optiz0r opened this issue Jul 27, 2021 · 0 comments

Comments

@optiz0r
Copy link

optiz0r commented Jul 27, 2021

Latest version of python-consul fails to register or deregister any services when ACLs are enabled, because the way it submits the auth token was deprecated and support dropped around consul 0.7. More recent versions of consul now also apply strict schemas and reject unknown fields, including the WriteRequest { token: "" } block currently used to send the ACL token.

This results in:

consul.base.BadRequest: 400 Request decode failed: json: unknown field "WriteRequest"

Reference for removal of WriteRequest: hashicorp/consul#1034 (comment)

(This is fixed in python-consul2, leaving this issue open to make it discoverable for anyone else who runs into it: https://github.com/poppyred/python-consul2/blob/master/consul/base.py#L1794).

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

No branches or pull requests

1 participant