consul-template: [WARN] vault.token: TTL of xxyyzz exceeded the effective max_ttl of xxyyzz; TTL value is capped accordingly

During consul-template execution, I got the following error: The vault and consul tokens had enough TTL left and hence there was no problem with tokens. Solution The problem lied with the template. The behavior of consul-template was “If a token read is failed, consul would just throw TTL warning and HTTP error code 504”. The … More consul-template: [WARN] vault.token: TTL of xxyyzz exceeded the effective max_ttl of xxyyzz; TTL value is capped accordingly