Open geoff-carr-bzy opened 1 year ago
This is most likely due to one of the breaking changes in v4.0.0
as described here: https://github.com/mrparkers/terraform-provider-keycloak/blob/master/CHANGELOG.md#v400-october-10-2022
- updated the default value of the
base_path
provider attribute, it is now an empty string (#733)
- this change was made due to the Quarkus distribution of Keycloak removing the
/auth
context from API urls. if you are currently using the Quarkus version of Keycloak, you no longer need to specify thebase_path
provider attribute as an empty string. if you are currently using the legacy version of Keycloak, you will need to add thebase_path
provider attribute and set it to/auth
.
If updating your base_path
provider attribute doesn't help, please try again with the TF_LOG=DEBUG
environment variable set, and post the logs here (redacting all sensitive information).
Also, I have seen this happen when the admin API endpoint is not accessible by the Terraform client, such as when the endpoint is protected from public access at a firewall; the "<" being returned is likely opening character of an html error page.
Getting the following error when using version of the provider greater than
3.10.0
, in this casev4.1.0
: -Reverting to
3.10.0
resolves the issue